Skip to content

Commit a21c8ba

Browse files
committed
Flag a case as false negative
This is consistently broken across all queries that depend on it: - c/misra/src/rules/RULE-21-17/StringFunctionPointerArgumentOutOfBounds.ql - c/misra/src/rules/RULE-21-18/StringLibrarySizeArgumentOutOfBounds.ql - c/cert/src/rules/ARR30-C/DoNotFormOutOfBoundsPointersOrArraySubscripts.ql - c/cert/src/rules/ARR38-C/LibraryFunctionArgumentOutOfBounds.ql
1 parent b3fb756 commit a21c8ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/misra/test/rules/RULE-8-7-1/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void test_strings(int flow, int unk_size) {
337337
strcat(buf1, " "); // NON_COMPLIANT - not null terminated
338338
strcat(buf2, " "); // COMPLIANT
339339
strcat(buf3, " "); // COMPLIANT
340-
strcat(buf4, "12345"); // NON_COMPLIANT
340+
strcat(buf4, "12345"); // NON_COMPLIANT[FALSE_NEGATIVE]
341341

342342
strcat(get_ca_5(), "12345"); // NON_COMPLIANT
343343
strcat(get_ca_5(), "1234"); // COMPLIANT

0 commit comments

Comments
 (0)