Skip to content

Commit 6924c6c

Browse files
authored
Update test.c
1 parent 3da88f2 commit 6924c6c

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ void workFunction_1(char *s) {
2020
if(intB - intA<10) break;
2121
intA--;
2222
}while(intA>0); // BAD
23+
for(intA=100; intA>0; intA--)
24+
{
25+
if(intB - intA<10) break;
26+
}while(intA>0); // BAD
2327
while(intA>0)
2428
{
2529
if(intB - intA<10) break;

0 commit comments

Comments
 (0)