mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-06 12:26:40 +00:00
- Fixed potential heap corruption in x509_name allocation
This commit is contained in:
@@ -305,6 +305,8 @@ static int x509_get_name( unsigned char **p,
|
||||
if( cur->next == NULL )
|
||||
return( POLARSSL_ERR_X509_MALLOC_FAILED );
|
||||
|
||||
memset( cur->next, 0, sizeof( x509_name ) );
|
||||
|
||||
return( x509_get_name( p, end2, cur->next ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user