mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Merge of IOTSSL-476 - Random malloc in pem_read()
This commit is contained in:
parent
e7f96f22ee
commit
a45aa1399b
3 changed files with 10 additions and 0 deletions
|
|
@ -184,7 +184,10 @@ int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
|
|||
}
|
||||
|
||||
if( n == 0 )
|
||||
{
|
||||
*olen = 0;
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
n = ( ( n * 6 ) + 7 ) >> 3;
|
||||
n -= j;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue