[DFSan] Add custom wrapper for getsockname.
authorMatt Morehouse <mascasa@google.com>
Thu, 10 Dec 2020 15:42:11 +0000 (07:42 -0800)
committerMatt Morehouse <mascasa@google.com>
Thu, 10 Dec 2020 16:13:05 +0000 (08:13 -0800)
commit8a874a427777298d030715e041dcaae132095dee
tree9cbba72199870a2be991466db2be203a7632ace0
parent4ce242a163c3b98385a5cb949a7e6b1e1ae7eb83
[DFSan] Add custom wrapper for getsockname.

The wrapper clears shadow for any bytes written to addr or addrlen.

Reviewed By: stephan.yichao.zhao

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