mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 17:44:22 +01:00
Merge pull request #377 from sbutcher-arm/gcc7-warning-fix
Fix warning with gcc7 - maximum allocation exceeded
This commit is contained in:
commit
4fca6b1a15
@ -5297,6 +5297,8 @@ void generate_random( int bytes_arg )
|
|||||||
size_t i;
|
size_t i;
|
||||||
unsigned run;
|
unsigned run;
|
||||||
|
|
||||||
|
TEST_ASSERT( bytes_arg >= 0 );
|
||||||
|
|
||||||
ASSERT_ALLOC( output, bytes + sizeof( trail ) );
|
ASSERT_ALLOC( output, bytes + sizeof( trail ) );
|
||||||
ASSERT_ALLOC( changed, bytes );
|
ASSERT_ALLOC( changed, bytes );
|
||||||
memcpy( output + bytes, trail, sizeof( trail ) );
|
memcpy( output + bytes, trail, sizeof( trail ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user