Skip to content

Commit 81205f3

Browse files
committed
C++: Fix test annotation.
1 parent 18890c4 commit 81205f3

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-089/SqlTainted

1 file changed

+1
-1
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-089/SqlTainted/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ int main(int argc, char** argv) {
3030
// an integer from the user is injected into an SQL query.
3131
char query3[1000] = {0};
3232
snprintf(query3, 1000, "SELECT UID FROM USERS where number = \"%i\"", userNumber);
33-
mysql_query(0, query3); // BAD
33+
mysql_query(0, query3); // GOOD
3434
}

0 commit comments

Comments
 (0)