[compiler-rt] Fix compiler warnings and runtime errors in sanitizer RT strxfrm(_l...
authorDokyung Song <dokyungs@google.com>
Mon, 13 Jul 2020 21:56:02 +0000 (21:56 +0000)
committerMatt Morehouse <mascasa@google.com>
Mon, 13 Jul 2020 22:35:01 +0000 (22:35 +0000)
commit10aa0d7bbc12bf86958bc40943e37b46c6eed04a
treec2b60981ce7ecec23053aacde8853a337f79f104
parentbfa3b627c6832552a7808a9f0f7f9cab61c7ea1a
[compiler-rt] Fix compiler warnings and runtime errors in sanitizer RT strxfrm(_l) test cases.

Summary: Fixed an implicit definition warning by including <string.h>. Also fixed run-time assertions that the return value of strxfrm_l calls is less than the buffer size by increasing the size of the referenced buffer.

Reviewers: morehouse

Reviewed By: morehouse

Subscribers: dberris, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D83593
compiler-rt/test/msan/__strxfrm_l.cpp
compiler-rt/test/sanitizer_common/TestCases/Posix/strxfrm.c