mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
[CPP-434] Incorporate test from BadAdditionOverflowCheck.
This commit is contained in:
@@ -79,3 +79,7 @@ bool func1(se *so) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool checkOverflow3(unsigned int a, unsigned short b) {
|
||||
return (a + b < a); // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user