Skip to content

Commit 7f1bd49

Browse files
committed
C++: Add test annotation
1 parent 3e2397a commit 7f1bd49

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle/test2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,5 +411,5 @@ void test7_1(const char *path1, const char *path2)
411411

412412
int test8(const char *path, int mode)
413413
{
414-
return (chmod(path, mode) == 0 ? 1 : 0);
414+
return (chmod(path, mode) == 0 ? 1 : 0); // GOOD
415415
}

0 commit comments

Comments
 (0)