This is an archive of the discontinued LLVM Phabricator instance.

[MemoryLocation] Support memset_chk in getForArgument.
ClosedPublic

Authored by fhahn on Dec 1 2021, 6:17 AM.

Details

Summary

The size argument for memset_chk is an upper bound for the size of the
pointer argument. memset_chk may write less than the specified length,
if it exceeds the specified max size and aborts.

Diff Detail

Event Timeline

fhahn created this revision.Dec 1 2021, 6:17 AM
fhahn requested review of this revision.Dec 1 2021, 6:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 6:17 AM
nikic accepted this revision.Dec 1 2021, 6:27 AM
nikic added a subscriber: nikic.

LGTM

llvm/lib/Analysis/MemoryLocation.cpp
220

exceed -> exceeded/exceeds?

This revision is now accepted and ready to land.Dec 1 2021, 6:27 AM
This revision was landed with ongoing or failed builds.Dec 2 2021, 5:46 AM
This revision was automatically updated to reflect the committed changes.
fhahn marked an inline comment as done.Dec 2 2021, 5:51 AM
fhahn added inline comments.
llvm/lib/Analysis/MemoryLocation.cpp
220

Thanks, updated to exceeds in the committed version!