This patch adds support for a few more pointer arithmetic cases. For instance, when p is a null pointer, it would be possible to track that expressions like *(++p) = 5 and *(p + 2) = 5 are null pointer dereferences that are based on pointer p. The analyzer would later be able to display additional diagnostics to track where p has become null and why. I noticed these cases accidentally when i was working on D37023.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/Analysis/nullptr.cpp | ||
---|---|---|
54 ↗ | (On Diff #112221) | This note has been added by the patch. Other newly displayed notes in the old tests here have always been there, but just now got displayed. |