Skip to content

CPP: Fix type confusion in IncorrectPointerscaling.ql #644

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 4 commits into from
Dec 10, 2018

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Dec 7, 2018

Fix false positives in IncorrectPointerscaling.ql caused by type confusion in pointer parameters, such as this case:

https://lgtm.com/projects/g/NVIDIAGameWorks/PhysX-3.4/snapshot/7824041cdbe617fcb8d905c36bdb0db06c77a75c/files/PhysX_3.4/Source/SceneQuery/src/SqBucketPruner.cpp?sort=name&dir=ASC&mode=heatmap#L343

After this is merged I plan to create an IncorrectPointerScaling.qll library to remove some of the code duplication you can see in the three similar queries.

@geoffw0 geoffw0 added the C++ label Dec 7, 2018
@geoffw0 geoffw0 requested a review from a team as a code owner December 7, 2018 18:44
@jbj jbj merged commit 1f73834 into github:master Dec 10, 2018
cklin pushed a commit that referenced this pull request May 23, 2022
Post-release preparation for codeql-cli-2.7.4
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