[sanitizer] Fix mallopt interceptor.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 25 Oct 2018 22:15:44 +0000 (22:15 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 25 Oct 2018 22:15:44 +0000 (22:15 +0000)
commitea857e82251e87fa2d966e50f499e7b560734428
tree61ae150247d464e2c273d759d91d2f0bd68d907e
parent018b0634b41cb3204eeae25a62858a7e687ba9c1
[sanitizer] Fix mallopt interceptor.

On error, mallopt is supposed to return 0, not -1.

llvm-svn: 345323
compiler-rt/lib/asan/asan_malloc_linux.cc
compiler-rt/lib/hwasan/hwasan_interceptors.cc
compiler-rt/lib/lsan/lsan_interceptors.cc
compiler-rt/lib/msan/msan_interceptors.cc
compiler-rt/lib/scudo/scudo_malloc.cpp
compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cc [new file with mode: 0644]