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

user-jakobl-CodeQL-Testing #860

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

JakobL-MSFT
Copy link
Contributor

No description provided.


// CodeQL Injected Defect #3:
int foo3(int n1, unsigned short delta) {
return n1 + delta < n1; // BAD

Check failure

Code scanning / CodeQL

Signed overflow check

Testing for signed overflow may produce undefined results.

// CodeQL Injected Defect #2:
int foo2(int n1, unsigned short delta) {
return n1 + delta < n1; // BAD

Check failure

Code scanning / CodeQL

Signed overflow check

Testing for signed overflow may produce undefined results.
@@ -34,6 +34,21 @@
#pragma alloc_text (PAGE, DriverUnload)
#endif

// CodeQL Injected Defect #1:
int foo1(int n1, unsigned short delta) {
return n1 + delta < n1; // BAD

Check failure

Code scanning / CodeQL

Signed overflow check

Testing for signed overflow may produce undefined results.
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.

None yet

1 participant