Skip to content

Commit 0082422

Browse files
authored
Merge pull request #12397 from kivaisan/fix_athandler_ut_test_overflow
Testing: Fix buffer overflow in ATHandler_read_bytes UT test
2 parents d847f9f + a66f15d commit 0082422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ TEST_F(TestATHandler, test_ATHandler_read_bytes)
482482
filehandle_stub_table_pos = 0;
483483

484484
ATHandler at(&fh1, que, 0, ",");
485-
uint8_t buf[5];
485+
uint8_t buf[8]; // 1st part of the test reads 5 bytes and the 2nd part 8 bytes
486486

487487
// TEST EMPTY BUFFER
488488
// Shouldn't read any byte since buffer is empty

0 commit comments

Comments
 (0)