Rewrote check to prevent read of uninitialized data in

rsa_rsassa_pss_verify()
This commit is contained in:
Paul Bakker 2013-12-31 11:43:01 +01:00
parent 6992eb762c
commit 4de44aa0ae

View file

@ -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 ||