Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8335778 commit 5e23615Copy full SHA for 5e23615
1 file changed
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-754/semmle/tests/test.cpp
@@ -59,7 +59,7 @@ int functionWork1b(int retIndex) {
59
}
60
int functionWork1_() {
61
int i;
62
- scanf("%i",&i); // GOOD
+ scanf("%i",&i); // BAD [NOT DETECTED]
63
if(i<10)
64
return -1;
65
return i;
@@ -115,3 +115,7 @@ int functionWork2b_() {
115
globalVala2 = a[0];
116
return 0;
117
118
+int functionWork3b(int i) {
119
+ scanf("%i", &i); // BAD
120
+ return 0;
121
+}
0 commit comments