Files
clang-p2996/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
Pavel Skripkin 9abf6d3506 [analyzer] [MallocChecker] Assume functions with ownership_returns return unknown memory (#110115)
There is no good way to tell CSA if function with `ownership_returns`
attribute returns initialized or not initialized memory. To make FP rate
lower, let's assume that memory returned from such functions is unknown
and do not reason about it.

In future it would be great to add a way to annotate such behavior
2024-09-26 15:45:08 +03:00

145 KiB