mirror of
https://github.com/github/codeql.git
synced 2026-03-24 00:16:49 +01:00
5 lines
200 B
C
5 lines
200 B
C
unsigned limit = get_limit();
|
|
unsigned total = 0;
|
|
while (limit - total > 0) { // wrong: if `total` is greater than `limit` this will underflow and continue executing the loop.
|
|
total += get_data();
|
|
} |