Skip to content
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

Role Types Correctly Used Query #94

Merged
merged 87 commits into from
Dec 15, 2023

Conversation

jacob-ronstadt
Copy link
Contributor

Checklist for Pull Requests

Query to check that a function used in places expecting a specific role type is declared with that role type.

  • Description is filled out.
  • Only one query or related query group is in this pull request.
  • The version number on changed queries has been increased via the @version comment in the file header.
  • All unit tests have been run: (Test README.md).
  • Commands codeql database create and codeql database analyze have completed successfully.
  • A .qhelp file has been added for any new queries or updated if changes have been made to an existing query.

NateD-MSFT and others added 30 commits March 20, 2023 17:46
Update cpp-all to 0.9.2, cpp-queries to 0.7.4
Signed-off-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
The changes to Irql.qll needed for IrqlSetTooHigh, etc. means we are more likely to see IRQL evaluations that return -1.  Update queries to exclude those numbers.
@jacob-ronstadt jacob-ronstadt changed the title Jacob ronstadt/role types Role Types Correctly Used Query Nov 29, 2023
@NateD-MSFT
Copy link
Contributor

@jacob-ronstadt Hey Jacob. The automated query build check is failing. Please take a look at the details - it seems like there were some knock-on effects from your changes to WdmDrivers.qll, etc. Other queries may need to be updated as a result.

@jacob-ronstadt
Copy link
Contributor Author

@NateD-MSFT part of the issue causing the build error was a conflict with the new DataFlow module and the now deprecated (as of CodeQL 2.14.1) DataFlow library. I will create an issue to update queries using the old DataFlow library.

src/drivers/test/diff/ExaminedValue.sarif Outdated Show resolved Hide resolved
src/drivers/kmdf/libraries/KmdfDrivers.qll Outdated Show resolved Hide resolved
src/drivers/kmdf/libraries/KmdfDrivers.qll Outdated Show resolved Hide resolved
src/drivers/storport/libraries/StorportDrivers.qll Outdated Show resolved Hide resolved
src/drivers/storport/libraries/StorportDrivers.qll Outdated Show resolved Hide resolved
src/drivers/storport/libraries/StorportDrivers.qll Outdated Show resolved Hide resolved
src/drivers/storport/libraries/StorportDrivers.qll Outdated Show resolved Hide resolved
src/drivers/storport/libraries/StorportDrivers.qll Outdated Show resolved Hide resolved
src/drivers/wdm/libraries/WdmDrivers.qll Outdated Show resolved Hide resolved
jacob-ronstadt and others added 7 commits December 4, 2023 11:05
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
Co-authored-by: NateD-MSFT <34494373+NateD-MSFT@users.noreply.github.com>
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
@jacob-ronstadt jacob-ronstadt merged commit f1b0cd2 into development Dec 15, 2023
2 checks passed
@jacob-ronstadt jacob-ronstadt deleted the jacob-ronstadt/role_types branch December 15, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants