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 02eb447 commit 9b3ccadCopy full SHA for 9b3ccad
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-691/semmle/tests/test.c
@@ -12,14 +12,14 @@ void workFunction_0(char *s) {
12
void workFunction_1(char *s) {
13
int intA,intB;
14
15
- if(intA + intB) return; // BAD
+ if(intA + intB) return; // BAD [NOT DETECTED]
16
if(intA + intB>4) return; // GOOD
17
- if(intA>0 && (intA + intB)) return; // BAD
+ if(intA>0 && (intA + intB)) return; // BAD [NOT DETECTED]
18
while(intA>0)
19
{
20
if(intB - intA<10) break;
21
intA--;
22
- }while(intA>0); // BAD
+ }while(intA>0); // BAD [NOT DETECTED]
23
24
25
0 commit comments