Skip to content

Commit 3d11724

Browse files
authored
Update test.c
1 parent cbf158e commit 3d11724

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-691/semmle/tests

1 file changed

+2
-2
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-691/semmle/tests/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ void workFunction_0(char *s) {
55
int intSize;
66
char buf[80];
77
if(intSize>0 && intSize<80 && memset(buf,0,intSize)) return; // GOOD
8-
if(intSize>0 & intSize<80 & memset(buf,0,intSize)) return; // BAD
8+
if(intSize>0 & intSize<80 & memset(buf,0,intSize)) return; // BAD [NOT DETECTED]
99
if(intSize>0 && tmpFunction()) return;
10-
if(intSize<0 & tmpFunction()) return; // BAD
10+
if(intSize<0 & tmpFunction()) return; // BAD [NOT DETECTED]
1111
}
1212
void workFunction_1(char *s) {
1313
int intA,intB;

0 commit comments

Comments
 (0)