mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: Update comment.
This commit is contained in:
@@ -35,7 +35,7 @@ void processRequest()
|
||||
adminPrivileges = 0; // OK, since it's a 0 and not a 1
|
||||
}
|
||||
|
||||
// BAD, but it requires pointer analysis to catch
|
||||
// BAD (requires pointer analysis to catch)
|
||||
const char** userp = ¤tUser;
|
||||
*userp = userName;
|
||||
if (!strcmp(currentUser, "admin")) {
|
||||
|
||||
Reference in New Issue
Block a user