[PATCH] D89984: [GWP-ASan] Move random-related code in the allocator (redo)

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 22 13:40:50 PDT 2020


cryptoad created this revision.
cryptoad added reviewers: hctim, eugenis, mcgrathr, nikic.
Herald added subscribers: Sanitizers, mgorny.
Herald added a project: Sanitizers.
cryptoad requested review of this revision.

This is a redo of D89908 <https://reviews.llvm.org/D89908>, which triggered some `-Werror=conversion`
errors with GCC due to assignments to the 31-bit variable.

This CL adds to the original one a 31-bit mask variable that is used
at every assignment to silence the warning.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89984

Files:
  compiler-rt/lib/gwp_asan/CMakeLists.txt
  compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
  compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
  compiler-rt/lib/gwp_asan/options.inc
  compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
  compiler-rt/lib/gwp_asan/random.cpp
  compiler-rt/lib/gwp_asan/random.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89984.300094.patch
Type: text/x-patch
Size: 10272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201022/eb84a207/attachment-0001.bin>


More information about the llvm-commits mailing list