Skip to content

Commit 01fc721

Browse files
committed
C++: Fixup test annotation
1 parent ca71ac7 commit 01fc721

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Format/SnprintfOverflow

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Likely Bugs/Format/SnprintfOverflow/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void test7(const char *strings) // separated by \0, terminated by \0\0
106106

107107
void concat_strings(char *buf, size_t buf_len, const char **strings, size_t n_strings) {
108108
while (n_strings > 0) {
109-
int ret = snprintf(buf, buf_len, "%s", *strings); // GOOD [FALSE POSITIVE]
109+
int ret = snprintf(buf, buf_len, "%s", *strings); // GOOD
110110
if (ret > buf_len)
111111
return;
112112
buf_len -= ret;

0 commit comments

Comments
 (0)