This is an archive of the discontinued LLVM Phabricator instance.

[DFSan] New custom wrappers
ClosedPublic

Authored by martignlo on Dec 6 2013, 7:43 AM.

Details

Summary
  • Added the following custom wrappers:
    • strstr
    • strrchr
    • memchr
    • nanosleep
    • socketpair
  • Tweaked a couple of existing wrappers: if a wrapper returns a pointers derived from an input pointer, then return the label of the input pointer
  • Sorted tests invocation

Diff Detail

Event Timeline

pcc added inline comments.Dec 6 2013, 6:34 PM
lib/dfsan/dfsan_custom.cc
751

Shouldn't this always be strlen(s)+1? The function always needs to inspect each char in the string, right?

martignlo updated this revision to Unknown Object (????).Dec 13 2013, 7:28 AM
martignlo added inline comments.
lib/dfsan/dfsan_custom.cc
751

Right! Fixed.

pcc accepted this revision.Dec 17 2013, 4:36 PM

LGTM.

Eugene.Zelenko closed this revision.Oct 4 2016, 4:33 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL197601.