Rewrote check to prevent read of uninitialized data in
rsa_rsassa_pss_verify()
This commit is contained in:
parent
6992eb762c
commit
4de44aa0ae
1 changed files with 1 additions and 1 deletions
|
@ -1161,7 +1161,7 @@ int rsa_rsassa_pss_verify( rsa_context *ctx,
|
|||
|
||||
buf[0] &= 0xFF >> ( siglen * 8 - msb );
|
||||
|
||||
while( *p == 0 && p < buf + siglen )
|
||||
while( p < buf + siglen && *p == 0 )
|
||||
p++;
|
||||
|
||||
if( p == buf + siglen ||
|
||||
|
|
Loading…
Reference in a new issue