mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
C++: Expand heuristic to catch more sources.
This commit is contained in:
@@ -246,6 +246,6 @@ void test_flow_through_setter(unsigned size) {
|
||||
void* my_alloc(unsigned size);
|
||||
|
||||
void foo(unsigned size) {
|
||||
int* p = (int*)my_alloc(size); // BAD [NOT DETECTED]
|
||||
int* p = (int*)my_alloc(size); // BAD
|
||||
memset(p, 0, size + 1);
|
||||
}
|
||||
Reference in New Issue
Block a user