[dfsan] Add Origin ABI Wrappers
authorJianzhou Zhao <jianzhouzh@google.com>
Wed, 24 Mar 2021 16:13:09 +0000 (16:13 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Wed, 24 Mar 2021 16:13:09 +0000 (16:13 +0000)
commit91516925ddab3d364648aa5c94b6d29e47e56254
tree9cae55ed486058e402c777f836977c1a1a11844c
parent7dd90da79f082008fb443285c13bc2035c34e71d
[dfsan] Add Origin ABI Wrappers

    Supported strrchr, strrstr, strto*, recvmmsg, recrmsg, nanosleep,
    memchr, snprintf, socketpair, sprintf, getocketname, getsocketopt,
    gettimeofday, getpeername.

    strcpy was added because the test of sprintf need it. It will be
    committed by D98966. Please ignore it when reviewing.

    This is a part of https://reviews.llvm.org/D95835.

    Reviewed By: gbalats

    Differential Revision: https://reviews.llvm.org/D99109
compiler-rt/lib/dfsan/dfsan_custom.cpp
compiler-rt/test/dfsan/custom.cpp