mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-19 10:21:10 +02:00
Merge pull request #377 from sbutcher-arm/gcc7-warning-fix
Fix warning with gcc7 - maximum allocation exceeded
This commit is contained in:
@@ -5297,6 +5297,8 @@ void generate_random( int bytes_arg )
|
||||
size_t i;
|
||||
unsigned run;
|
||||
|
||||
TEST_ASSERT( bytes_arg >= 0 );
|
||||
|
||||
ASSERT_ALLOC( output, bytes + sizeof( trail ) );
|
||||
ASSERT_ALLOC( changed, bytes );
|
||||
memcpy( output + bytes, trail, sizeof( trail ) );
|
||||
|
||||
Reference in New Issue
Block a user