-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix codeql warnings #3489
fix codeql warnings #3489
Conversation
@AlexGuteniev said:
that would certainly make me happier, but this is an internal thing. |
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.
I'm not enthusiastic about adding arcane comments to our source to suppress static analysis false positives from some unknowable internal process, but if we must do so, I believe these changes are minimally damaging.
@CaseyCarter fully agreed |
I double-checked all of the control flow - the code is safe, but it's squirrelly enough 🐿️ that I can't really blame CodeQL for warning. A handful of suppressions are acceptable, but I would reconsider if this ended up growing to dozens and dozens. Thanks for making the changes here as non-invasive as possible. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. (I will, of course, wait for the |
We've reluctantly decided that there's no way around merging this. |
Thanks for investigating and fixing these delightful warnings! |
I think you mean "possibly fixing", since we have no way to verify 🤪 |
Same as #3478 but not from a microsoft/STL branch.
Link to internal codeql bugs:
I'm still not sure if we should have these, and I'm unsure how to test these changes.