Skip to content

Commit a094e6f

Browse files
authored
Update test.cpp
1 parent fa3ce61 commit a094e6f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ int functionWork2b_() {
115115
globalVala2 = a[0];
116116
return 0;
117117
}
118-
int functionWork3b(int i) {
119-
scanf("%i", &i); // BAD
118+
int functionWork3b(int * i) {
119+
scanf("%i", i); // BAD
120120
return 0;
121121
}
122122
int functionWork3() {

0 commit comments

Comments
 (0)