Skip to content

Commit 3193fe8

Browse files
committed
C++: Update comments
1 parent 7abe700 commit 3193fe8

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ UNKNOWN_TYPE test_error_value() {
77

88
void* test_error_pointer() {
99
UNKNOWN_TYPE x;
10-
return &x; // GOOD: Don't know what &x means
10+
return &x; // BAD [FALSE NEGATIVE]
1111
}
1212

1313
int* test_error_pointer_member() {
1414
UNKNOWN_TYPE x;
15-
return &x.y; // GOOD: Don't know what x.y means
15+
return &x.y; // BAD [FALSE NEGATIVE]
1616
}

0 commit comments

Comments
 (0)