strcpy/strcat/strncat access memory starting from the passed in
pointers. Construct memory locations for their args using getAfter.
Discussed in D114872.
Paths
| Differential D114969
[MemoryLocation] strcat/strncat/strcpy read/write after their args. ClosedPublic Authored by fhahn on Dec 2 2021, 9:40 AM.
Details
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Dec 2 2021, 10:52 AM This revision was landed with ongoing or failed builds.Dec 3 2021, 12:48 AM Closed by commit rG829b29b619f3: [MemoryLocation] strcat/strncat/strcpy read/write after their args. (authored by fhahn). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 391363 llvm/lib/Analysis/MemoryLocation.cpp
llvm/test/Analysis/BasicAA/libfuncs.ll
llvm/test/Transforms/DeadStoreElimination/libcalls.ll
|
For strncat we can do better analysis.
GetAfter - uppearBound(N + 1)