[all-commits] [llvm/llvm-project] 023f18: [hwasan] do not check if freed pointer belonged to...
Florian Mayer via All-commits
all-commits at lists.llvm.org
Wed Aug 25 01:31:50 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 023f18bbaf67ee7255309fac102ec6e2dc876961
https://github.com/llvm/llvm-project/commit/023f18bbaf67ee7255309fac102ec6e2dc876961
Author: Florian Mayer <fmayer at google.com>
Date: 2021-08-25 (Wed, 25 Aug 2021)
Changed paths:
M compiler-rt/lib/hwasan/hwasan_allocator.cpp
M compiler-rt/lib/hwasan/hwasan_linux.cpp
M compiler-rt/test/hwasan/TestCases/wild-free-realloc.c
M compiler-rt/test/hwasan/TestCases/wild-free.c
Log Message:
-----------
[hwasan] do not check if freed pointer belonged to allocator.
In that case it is very likely that there will be a tag mismatch anyway.
We handle the case that the pointer belongs to neither of the allocators
by getting a nullptr from allocator.GetBlockBegin.
Reviewed By: hctim, eugenis
Differential Revision: https://reviews.llvm.org/D108383
More information about the All-commits
mailing list