Files
clang-p2996/clang/test/Analysis/stack-addr-ps.cpp
Arseniy Zaostrovnykh aa4f81efb9 [analyzer] Fix false positive for stack-addr leak on simple param ptr (#107003)
Assigning to a pointer parameter does not leak the stack address because
it stays within the function and is not shared with the caller.

Previous implementation reported any association of a pointer parameter
with a local address, which is too broad.

This fix enforces that the pointer to a stack variable is related by at
least one level of indirection.

CPP-5642

Fixes #106834
2024-09-03 14:06:57 +02:00

23 KiB