commit | e93be8414babdb4f4dbb31dc8b34a81809ca7c11 | [log] [tgz] |
---|---|---|
author | Alexander Potapenko <glider@google.com> | Wed Jul 04 13:58:07 2012 +0000 |
committer | Alexander Potapenko <glider@google.com> | Wed Jul 04 13:58:07 2012 +0000 |
tree | 2b192ba3516fe844ffdb8ff38e688847ac9e4823 | |
parent | c2018c124e4b3fe463bb996e57a0d7aa552b12f4 [diff] |
Do not call malloc_zone_from_ptr() for the pointers passed to mz_size() and mz_free(). These callbacks assume that the memory belongs to asan_zone, so it's incorrect to pass it to another one. If a need for this appears (e.g. system libraries free the memory using wrong zone), it should be documented. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159713 91177308-0d34-0410-b5e6-96231b3b80d8