[PATCH] D65990: [Sanitizer][Darwin] Add interceptor for malloc_zone_from_ptr

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 14:37:25 PDT 2019


yln marked 2 inline comments as done.
yln added inline comments.


================
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;
+  }
----------------
kubamracek wrote:
> Is this a way of asking "is this a pointer from sanitizer_zone"? If yes, can we add a oneline comment explaining that?
Added comment.


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