[PATCH] D91615: [sanitizer_common] Don't try to unmap unaligned memory
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 9 00:16:22 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0e4b214b8c40: [sanitizer_common] Don't try to unmap unaligned memory (authored by ro).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91615/new/
https://reviews.llvm.org/D91615
Files:
compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
Index: compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
@@ -95,6 +95,7 @@
UnmapOrDie((void*)map_res, res - map_res);
}
uptr end = res + size;
+ end = RoundUpTo(end, GetPageSizeCached());
if (end != map_end)
UnmapOrDie((void*)end, map_end - end);
return (void*)res;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91615.407063.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/8c205836/attachment.bin>
More information about the llvm-commits
mailing list