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 9c05ffe commit 95c77caCopy full SHA for 95c77ca
1 file changed
cpp/ql/test/query-tests/Security/CWE/CWE-807/semmle/TaintedCondition/test.cpp
@@ -35,7 +35,7 @@ void processRequest()
35
adminPrivileges = 0; // OK, since it's a 0 and not a 1
36
}
37
38
- // BAD, but it requires pointer analysis to catch
+ // BAD (requires pointer analysis to catch)
39
const char** userp = ¤tUser;
40
*userp = userName;
41
if (!strcmp(currentUser, "admin")) {
0 commit comments