We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18890c4 commit 81205f3Copy full SHA for 81205f3
cpp/ql/test/query-tests/Security/CWE/CWE-089/SqlTainted/test.c
@@ -30,5 +30,5 @@ int main(int argc, char** argv) {
30
// an integer from the user is injected into an SQL query.
31
char query3[1000] = {0};
32
snprintf(query3, 1000, "SELECT UID FROM USERS where number = \"%i\"", userNumber);
33
- mysql_query(0, query3); // BAD
+ mysql_query(0, query3); // GOOD
34
}
0 commit comments