[all-commits] [llvm/llvm-project] 4399f3: [TSan][Darwin] Make malloc_size interceptor more r...
Julian Lettner via All-commits
all-commits at lists.llvm.org
Fri Dec 17 15:38:29 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4399f3b6b0df2aa2c57e4a3049f5494b53f6921c
https://github.com/llvm/llvm-project/commit/4399f3b6b0df2aa2c57e4a3049f5494b53f6921c
Author: Julian Lettner <julian.lettner at apple.com>
Date: 2021-12-17 (Fri, 17 Dec 2021)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_mman.cpp
M compiler-rt/test/tsan/Darwin/malloc_size.mm
Log Message:
-----------
[TSan][Darwin] Make malloc_size interceptor more robust
Previously we would crash in the TSan runtime if the user program passes
a pointer to `malloc_size()` that doesn't point into app memory.
In these cases, `malloc_size()` should return 0.
For ASan, we fixed a similar issue here:
https://reviews.llvm.org/D15008
Radar-Id: rdar://problem/86213149
Differential Revision: https://reviews.llvm.org/D115947
More information about the All-commits
mailing list