[PATCH] D91615: [sanitizer_common] Don't try to unmap unaligned memory
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 03:57:52 PST 2022
ro updated this revision to Diff 405916.
ro added a comment.
Incorporate review comments.
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.405916.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/fbf5c5ce/attachment.bin>
More information about the llvm-commits
mailing list