Merge pull request #12397 from kivaisan/fix_athandler_ut_test_overflow

Testing: Fix buffer overflow in ATHandler_read_bytes UT test
pull/12405/head
Martin Kojtal 2020-02-10 10:25:59 +00:00 committed by GitHub
commit 0082422f90
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