mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:15:37 +01:00
Add a comment regarding remaining space check
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
c3b69edd2f
commit
3403969645
@ -659,6 +659,7 @@ static int asn1_write_mpibuf( unsigned char **p, unsigned char *start,
|
||||
len += 1;
|
||||
}
|
||||
|
||||
/* Ensure that there is still space for len and ASN1_INTEGER */
|
||||
if( ( *p - start ) < 2 )
|
||||
return( MBEDTLS_ERR_ASN1_BUF_TOO_SMALL );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user