This is an archive of the discontinued LLVM Phabricator instance.

[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
its pointer arguments.

strncpy is guaranteed to write N bytes and reads up to N bytes.

Diff Detail

Event Timeline

fhahn created this revision.Dec 1 2021, 6:18 AM
fhahn requested review of this revision.Dec 1 2021, 6:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 6:18 AM
xbolva00 accepted this revision.Dec 1 2021, 6:24 AM
This 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
This revision was automatically updated to reflect the committed changes.