Skip to content

CPP: Make BitwiseSignCheck.ql more accurate#1605

Merged
rdmarsh2 merged 3 commits intogithub:masterfrom
geoffw0:bitwiseneg
Jul 24, 2019
Merged

CPP: Make BitwiseSignCheck.ql more accurate#1605
rdmarsh2 merged 3 commits intogithub:masterfrom
geoffw0:bitwiseneg

Conversation

@geoffw0
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 commented Jul 17, 2019

BitwiseSignCheck.ql was using getLeftOperand() / getRightOperand() on a RelationalOperation without checking whether it's < or >, which was leading to false positives and false negatives.

Addresses https://discuss.lgtm.com/t/cpp-bitwise-sign-check/2200.

@geoffw0 geoffw0 added the C++ label Jul 17, 2019
@geoffw0 geoffw0 requested a review from a team as a code owner July 17, 2019 12:42
Copy link
Copy Markdown
Contributor

@rdmarsh2 rdmarsh2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rdmarsh2 rdmarsh2 merged commit 05cad96 into github:master Jul 24, 2019
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