mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
pss: extra validity check
This commit is contained in:
parent
c3656aae30
commit
8ccac1d18a
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ namespace ams::crypto::impl {
|
||||||
const u8 *salt = db + salt_ofs;
|
const u8 *salt = db + salt_ofs;
|
||||||
const size_t salt_size = db_len - salt_ofs;
|
const size_t salt_size = db_len - salt_ofs;
|
||||||
is_valid &= (salt_size != 0);
|
is_valid &= (salt_size != 0);
|
||||||
|
is_valid &= (salt_size != db_len);
|
||||||
|
|
||||||
/* Verify hash. */
|
/* Verify hash. */
|
||||||
u8 cmp_hash[HashSize];
|
u8 cmp_hash[HashSize];
|
||||||
|
|
Loading…
Reference in a new issue