Skip to content

Commit 631b581

Browse files
authored
Merge pull request ARMmbed#12254 from maciejbocianski/fix_unittest_ATCmdParser_segfault
unittest: fix ATCmdParser test segfault
2 parents 1b11d2c + 455b846 commit 631b581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UNITTESTS/platform/ATCmdParser/test_ATCmdParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ TEST_F(test_ATCmdParser, test_ATCmdParser_read)
189189
filehandle_stub_table_pos = 0;
190190

191191
ATCmdParser at(&fh1, ",");
192-
char buf[6];
193-
memset(buf, 0, 6);
192+
char buf[8];
193+
memset(buf, 0, 8);
194194

195195
// TEST EMPTY BUFFER
196196
// Shouldn't read any byte since buffer is empty

0 commit comments

Comments
 (0)