mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Add check for lengths over 65535 in mbedtls_asn1_write_len()
This commit is contained in:
committed by
Simon Butcher
parent
97c53c2867
commit
7eb1243fb4
@ -40,6 +40,8 @@ extern "C" {
|
||||
* \param start start of the buffer (for bounds-checking)
|
||||
* \param len the length to write
|
||||
*
|
||||
* \note lengths over 65535 are not supported at the moment
|
||||
*
|
||||
* \return the length written or a negative error code
|
||||
*/
|
||||
int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, size_t len );
|
||||
|
Reference in New Issue
Block a user