Fix DataFlowSanitizer implementation of strchr() so that strchr(..., '\0') returns...
authorSam Kerner <skerner@chromium.org>
Wed, 15 Apr 2020 20:07:28 +0000 (13:07 -0700)
committerMatt Morehouse <mascasa@google.com>
Wed, 15 Apr 2020 20:08:47 +0000 (13:08 -0700)
commit10070e31a55c26d8cf990a5a5d6b09b8f413f433
tree07f4471822e8859d832d3386baab8e39149c803a
parentf1f37b7f01268cea2c4cb36e1c1dfdf26287f7db
Fix DataFlowSanitizer implementation of strchr() so that strchr(..., '\0') returns a pointer to '\0'.

Summary:

Fixes https://bugs.llvm.org/show_bug.cgi?id=22392

Reviewers: pcc, morehouse

Reviewed By: morehouse

Subscribers: morehouse, #sanitizers

Tags: #sanitizers

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