[PATCH] D65990: [Sanitizer][Darwin] Add interceptor for malloc_zone_from_ptr
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 13:33:51 PDT 2019
kubamracek accepted this revision.
kubamracek added inline comments.
This revision is now accepted and ready to land.
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc:96-99
+ size_t size = sanitizer_zone.size(&sanitizer_zone, ptr);
+ if (size) {
+ return &sanitizer_zone;
+ }
----------------
Is this a way of asking "is this a pointer from sanitizer_zone"? If yes, can we add a oneline comment explaining that?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65990/new/
https://reviews.llvm.org/D65990
More information about the llvm-commits
mailing list