Testing: Fix buffer overflow in ATHandler_read_bytes UT test

Fixes issue #12390
pull/12397/head
Kimmo Vaisanen 2020-02-10 09:52:18 +02:00
parent d847f9f164
commit a66f15dc4b
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ TEST_F(TestATHandler, test_ATHandler_read_bytes)
filehandle_stub_table_pos = 0;
ATHandler at(&fh1, que, 0, ",");
uint8_t buf[5];
uint8_t buf[8]; // 1st part of the test reads 5 bytes and the 2nd part 8 bytes
// TEST EMPTY BUFFER
// Shouldn't read any byte since buffer is empty