-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C++: Finalise docs for cpp/hresult-boolean-conversion and cpp/unsafe-dacl-security-descriptor #235
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
This commit changes the name and description of the new `HResultBooleanConversion` query to follow our internal guidelines.
169e685 to
308631e
Compare
| |-----------------------------|-----------|--------------------------------------------------------------------| | ||
| | *@name of query (Query ID)* | *Tags* |*Aim of the new query and whether it is enabled by default or not* | | ||
| | Cast between HRESULT and a Boolean type (`cpp/hresult-boolean-conversion`) | external/cwe/cwe-253 | Finds logic errors caused by mistakenly treating the Windows `HRESULT` type as a Boolean instead of testing it with the appropriate macros. Enabled by default. | | ||
| | Setting a DACL to `NULL` in a `SECURITY_DESCRIPTOR` (`cpp/unsafe-dacl-security-descriptor`) | external/cwe/cwe-732 | This query finds code that creates world-writable objects on Windows by setting their DACL to `NULL`. Enabled by default. | |
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.
These two queries should have the "security" tag also.
|
LGTM |
|
I just resolved the changenote conflict in the web-based conflict editor on github.com. I hope that worked. |
|
@itauthor if you're happy with these changes, please approve and merge. |
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.
Move comment so it's not treated as part of the precision metadata
…erface Extract companion objects from interfaces
PS: Restructure generated files
I merged HResultBooleanConversion.qhelp and UnsafeDaclSecurityDescriptor.qhelp in #211 and #212, and I'd like to get docteam reviews for them in this follow-up PR.
I'll open a separate PR for change notes.
Cc @raulgarciamsft.