mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Correct annotation in test
This commit is contained in:
@@ -643,11 +643,11 @@ void two_bounds_from_one_test(short ss, unsigned short us) {
|
||||
void guard_bound_out_of_range(void) {
|
||||
int i = 0;
|
||||
if (i < 0) {
|
||||
out(i); // 0 .. 0 [BUG: is -max .. +max]
|
||||
out(i); // unreachable [BUG: is -max .. +max]
|
||||
}
|
||||
|
||||
unsigned int u = 0;
|
||||
if (u < 0) {
|
||||
out(u); // 0 .. 0 [BUG: is 0 .. +max]
|
||||
out(u); // unreachable [BUG: is 0 .. +max]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user