Skip to content

Commit e4af342

Browse files
authored
C++: Actually fix incorrect annotation
1 parent ef5f16d commit e4af342

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Memory Management/UsingExpiredStackAddress

1 file changed

+2
-2
lines changed

cpp/ql/test/query-tests/Likely Bugs/Memory Management/UsingExpiredStackAddress/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int test_pointer_arith_good_1() {
7777
int x;
7878
address_escapes_through_pointer_arith();
7979
s101.p = &x;
80-
return *s101.p; // GOOD [FALSE POSITIVE]
80+
return *s101.p; // GOOD
8181
}
8282

8383
int test_pointer_arith_good_2(bool b) {
@@ -196,4 +196,4 @@ void test_not_escape_through_array() {
196196
int x20 = s1.a1[0]; // GOOD
197197
int x21 = s1.a2[0][1]; // GOOD
198198
int* x22 = s1.a3[5][2]; // GOOD
199-
}
199+
}

0 commit comments

Comments
 (0)