mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12397 from kivaisan/fix_athandler_ut_test_overflow
Testing: Fix buffer overflow in ATHandler_read_bytes UT testpull/12405/head
commit
0082422f90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue