mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-10 09:26:27 +00:00
Rewrote check to prevent read of uninitialized data in
rsa_rsassa_pss_verify()
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user