[PATCH] D50940: [sanitizer] Change Mmap*NoAccess to return MMAP_FAILED (~(uptr)0) on error

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 20 10:58:19 PDT 2018


cryptoad added a comment.

Other wrong use:
__hwasan::MapDynamicShadow: checks for failure with ~(uptr)0 (while it's the syscall return value)
__asan::FindDynamicShadowStart: same as above
__asan::PremapShadow: same as above


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D50940





More information about the llvm-commits mailing list