| Issue |
164937
|
| Summary |
False negative caused by alloca/atol or type conversion
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
tianxinghe
|
version: clang/llvm
git rev-parse HEAD
6dda3b1848435a62bdb84edb6474e69369ce6e8c
2025-10-20 20:10:22 +0530
This case requires an input value, which I set to **128**.
Line 22 triggers a null pointer dereference bug, but CSA fails to detect this bug.
https://godbolt.org/z/PT5Gv55GP
If this line can be commented out, CSA can discover bugs normally:
a_2 = (char*) alloca(sizeof(char));
If the 14th line is changed to this, CSA can also detect the bug:
if (((char)*p_2) > 0) {
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs