Skip to content

Commit a372e8d

Browse files
Update std.c [skip ci]
1 parent 558148b commit a372e8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/cfg/std.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4912,6 +4912,10 @@ void invalidFunctionArgString(char c)
49124912
char d='d';
49134913
/* cppcheck-suppress invalidFunctionArgStr */
49144914
(void)strcat(str,&d);
4915+
4916+
/* cppcheck-suppress [bufferAccessOutOfBounds,invalidFunctionArgStr] */
4917+
char c[] = { 'a', 'b', 'c' };
4918+
(void)strcat(c, "def");
49154919
}
49164920

49174921
void ignoredReturnValue_abs(int i)

0 commit comments

Comments
 (0)