I created null pointer dereference defects for each of the functions: func0, func1, func2, func3, and func4. Additionally, the main function does not call func1, yet the CSA checker only reported the defects in func1.I am unsure what caused this issue, perhaps there is a flaw hidden within the checker.
I created null pointer dereference defects for each of the functions: func0, func1, func2, func3, and func4. Additionally, the main function does not call func1, yet the CSA checker only reported the defects in func1.I am unsure what caused this issue, perhaps there is a flaw hidden within the checker.
This issue has persisted from LLVM 9 through LLVM 18.
https://godbolt.org/z/4fcWYqfj9
`4804:20: warning: Dereference of undefined pointer value (loaded from variable 'llvm_cbe_ld461') [core.NullDereference]
4804 | llvm_cbe_ld462 = *llvm_cbe_ld461;
| ^~~~~~~~~~~~~~~`
I created null pointer dereference defects for each of the functions: func0, func1, func2, func3, and func4. Additionally, the main function does not call func1, yet the CSA checker only reported the defects in func1.I am unsure what caused this issue, perhaps there is a flaw hidden within the checker.
This issue has persisted from LLVM 9 through LLVM 18.
https://godbolt.org/z/4fcWYqfj9
4804:20: warning: Dereference of undefined pointer value (loaded from variable 'llvm_cbe_ld461') [core.NullDereference] 4804 | llvm_cbe_ld462 = *llvm_cbe_ld461; | ^~~~~~~~~~~~~~~