This is an archive of the discontinued LLVM Phabricator instance.

[dfsan] Wrap strcat
ClosedPublic

Authored by stephan.yichao.zhao on Feb 2 2021, 9:29 PM.

Diff Detail

Event Timeline

stephan.yichao.zhao requested review of this revision.Feb 2 2021, 9:29 PM
stephan.yichao.zhao created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2021, 9:29 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
morehouse added inline comments.Feb 3 2021, 8:07 AM
compiler-rt/test/dfsan/custom.cpp
164

Doesn't this overtaint by 1 byte? sizeof() includes the null byte.

replaced sizeof+1 by sizeof

stephan.yichao.zhao marked an inline comment as done.Feb 3 2021, 9:14 AM
stephan.yichao.zhao added inline comments.
compiler-rt/test/dfsan/custom.cpp
164

Thank you. I confused sizeof and strlen.

This revision is now accepted and ready to land.Feb 3 2021, 10:37 AM
This revision was automatically updated to reflect the committed changes.