We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf158e commit 3d11724Copy full SHA for 3d11724
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-691/semmle/tests/test.c
@@ -5,9 +5,9 @@ void workFunction_0(char *s) {
5
int intSize;
6
char buf[80];
7
if(intSize>0 && intSize<80 && memset(buf,0,intSize)) return; // GOOD
8
- if(intSize>0 & intSize<80 & memset(buf,0,intSize)) return; // BAD
+ if(intSize>0 & intSize<80 & memset(buf,0,intSize)) return; // BAD [NOT DETECTED]
9
if(intSize>0 && tmpFunction()) return;
10
- if(intSize<0 & tmpFunction()) return; // BAD
+ if(intSize<0 & tmpFunction()) return; // BAD [NOT DETECTED]
11
}
12
void workFunction_1(char *s) {
13
int intA,intB;
0 commit comments