We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7abe700 commit 3193fe8Copy full SHA for 3193fe8
cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test_errors.cpp
@@ -7,10 +7,10 @@ UNKNOWN_TYPE test_error_value() {
7
8
void* test_error_pointer() {
9
UNKNOWN_TYPE x;
10
- return &x; // GOOD: Don't know what &x means
+ return &x; // BAD [FALSE NEGATIVE]
11
}
12
13
int* test_error_pointer_member() {
14
15
- return &x.y; // GOOD: Don't know what x.y means
+ return &x.y; // BAD [FALSE NEGATIVE]
16
0 commit comments