[PATCH] D43318: [asan] Be more careful and verbose when allocating dynamic shadow memory

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 14:34:38 PST 2018


kubamracek created this revision.
kubamracek added reviewers: delcypher, kcc, george.karpenkov, eugenis, filcab, fjricci.
kubamracek added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

FindAvailableMemoryRange can currently overwrite existing memory (by restricting the VM below addresses that are already used). This patch adds a check to make sure we don't restrict the VM space too much. We are also now more explicit about why the lookup failed and print out verbose values.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D43318

Files:
  lib/asan/asan_mac.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_mac.cc
  lib/sanitizer_common/sanitizer_win.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43318.134316.patch
Type: text/x-patch
Size: 5439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/2588bade/attachment.bin>


More information about the llvm-commits mailing list