From a66f15dc4b7e330c88ead5c73692a15900181f40 Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Mon, 10 Feb 2020 09:52:18 +0200 Subject: [PATCH] Testing: Fix buffer overflow in ATHandler_read_bytes UT test Fixes issue #12390 --- .../cellular/framework/device/athandler/athandlertest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp b/UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp index cbc11c3084..e6f6025c47 100644 --- a/UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp +++ b/UNITTESTS/features/cellular/framework/device/athandler/athandlertest.cpp @@ -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