Skip to content

C++: Improve cpp/linux-kernel-no-check-before-unsafe-put-user #9340

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

Merged
merged 2 commits into from
May 27, 2022

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented May 26, 2022

Improve cpp/linux-kernel-no-check-before-unsafe-put-user in experimental. Inspired by #8739 (which was closed) and the tests I developed for that in #8800 . Further improvements (in particular to the way dataflow is used) are definitely possible, but the goal of this PR is just to get specific knowledge out of my head and into the query.

In the first commit I define the sources properly, rather than coming from any parameter. In the second commit I adjust the query and test to be closer to reality.

@geoffw0 geoffw0 added the C++ label May 26, 2022
@geoffw0 geoffw0 requested a review from a team as a code owner May 26, 2022 13:32
Comment on lines +47 to +49
/**
* Macros used to check the value (barriers).
*/

Check warning

Code scanning / CodeQL

Class QLDoc style.

The QLDoc for a class should start with 'A', 'An', or 'The'.
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up!

@MathiasVP MathiasVP merged commit a633783 into github:main May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants