Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95c77ca

Browse files
committed
C++: Update comment.
1 parent 9c05ffe commit 95c77ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cpp/ql/test/query-tests/Security/CWE/CWE-807/semmle/TaintedCondition

cpp/ql/test/query-tests/Security/CWE/CWE-807/semmle/TaintedCondition/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void processRequest()
3535
adminPrivileges = 0; // OK, since it's a 0 and not a 1
3636
}
3737

38-
// BAD, but it requires pointer analysis to catch
38+
// BAD (requires pointer analysis to catch)
3939
const char** userp = &currentUser;
4040
*userp = userName;
4141
if (!strcmp(currentUser, "admin")) {

0 commit comments

Comments
 (0)