-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: refactor some code, and add access_ok cases #8599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Why no one is reviewing my pull request? |
Hi @4B5F5F4B, Don't worry. We haven't forgotten about your work! Please respect that, while we enjoy every single external contribution to CodeQL, it also takes a considerable amount of time for us to review (and even schedule reviewing time!) all of these pull requests. I'm promise that we'll get to review this PR very soon. |
In the meantime, I note that your pull request is failing CI checks because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @4B5F5F4B !
I've made a few comments, mostly to help me understand what the changes are doing.
cpp/ql/src/experimental/Security/CWE/CWE-020/NoCheckBeforeUnsafePutUser.ql
Show resolved
Hide resolved
) and | ||
exists(UnSafePutUserMacro unsafePutUser | | ||
DataFlow::localFlow(DataFlow::parameterNode(this), | ||
DataFlow::exprNode(unsafePutUser.getUserModePtr())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
cpp/ql/src/experimental/Security/CWE/CWE-020/NoCheckBeforeUnsafePutUser.ql
Show resolved
Hide resolved
Thanks my bro~ |
Hello, @MathiasVP I think I did formatted the whole file by running command Format Document in VSCode, but I don't mind trying again to make CI happy:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks again for the contribution!
I refactor some code to make the query much more clear, and access_ok is added in WriteAccessCheckMacro