-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C/C++ : Wrong Uint access #8994
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
Supervised by @catenacyber |
@HansmannThibaut the example you gave is missing the index used for array access ie |
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 your contribution, @HansmannThibaut. Here are a couple of initial comments.
The code looks good now! Only a small formatting issue to fix now:
Please see the Formatting section in https://github.com/github/codeql/blob/main/CONTRIBUTING.md#submitting-a-new-experimental-query. |
Everything should be good now. |
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!
This request find all array access that use the wrong kind of Uint. For instance,
This query found results on Suricata. It's also part of a project to find bug or bad behaviour in Suricata.