mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02: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