Merge pull request #377 from sbutcher-arm/gcc7-warning-fix
Fix warning with gcc7 - maximum allocation exceeded
This commit is contained in:
commit
4fca6b1a15
1 changed files with 2 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue