-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C++: Split 'gets' model. #7703
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
C++: Split 'gets' model. #7703
Conversation
MathiasVP
left a comment
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! Both of my comments are really something that we should fix as follow-ups, so feel free to merge this PR without changing anything.
|
Fixed formatting. |
MathiasVP
left a comment
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!
As I understand it
getsshould be aLocalFlowSourceFunctionnot aRemoteFlowSourceFunction(unlikefgetswhich may at least be a remote source). Fixing this required splitting the model in two, though a few parts did simplify afterwards.This change is mostly for correctness but will fix the odd false positive, such as the test case added for
cpp/cleartext-transmission(which confusingly is and remains a true positive forcpp/cleartext-storage-buffer, tested alongside, because that query is defined to not care about it being a remote source).