The size argument of strncpy can be used as bound for the size of
its pointer arguments.
strncpy is guaranteed to write N bytes and reads up to N bytes.
Paths
| Differential D114871
[MemoryLocation] Support strncpy in getForArgument. ClosedPublic Authored by fhahn on Dec 1 2021, 6:18 AM.
Details Summary The size argument of strncpy can be used as bound for the size of strncpy is guaranteed to write N bytes and reads up to N bytes.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 1 2021, 6:24 AM This revision was landed with ongoing or failed builds.Dec 2 2021, 6:18 AM Closed by commit rG639a78a4bf9d: [MemoryLocation] Support strncpy in getForArgument. (authored by fhahn). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 391001 llvm/lib/Analysis/MemoryLocation.cpp
llvm/test/Analysis/BasicAA/libfuncs.ll
|