mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:35:43 +01:00
Fix buffer initalisation
Initialise the buffer tail with random data instead of given value.
This commit is contained in:
parent
f5ebe2a7ce
commit
32db938463
@ -88,7 +88,7 @@ void mbedtls_platform_memset( void *ptr, int value, size_t num )
|
||||
|
||||
/* Perform a pair of memset operations from random locations with
|
||||
* random data */
|
||||
memset( (void *) ( (unsigned char *) ptr + start_offset ), value,
|
||||
memset( (void *) ( (unsigned char *) ptr + start_offset ), data,
|
||||
( num - start_offset ) );
|
||||
memset( (void *) ptr, data, start_offset );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user