mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Update cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fb0f9ec601
commit
11152deeb5
@@ -1036,7 +1036,7 @@ void test_guard_after_use(int pos, int size, int offset) {
|
||||
if (pos + offset >= size) { // $ overflow=+-
|
||||
return;
|
||||
}
|
||||
if (offset == 1) {
|
||||
if (offset != 1) {
|
||||
return;
|
||||
}
|
||||
range(pos + 1); // $ overflow=+ range="==InitializeParameter: pos+1" MISSING: range="<=InitializeParameter: size-1"
|
||||
|
||||
Reference in New Issue
Block a user