This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Move random-related code in the allocator (redo)
ClosedPublic

Authored by cryptoad on Oct 22 2020, 1:40 PM.

Details

Summary

This is a redo of 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.

Diff Detail

Event Timeline

cryptoad created this revision.Oct 22 2020, 1:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2020, 1:40 PM
Herald added subscribers: Restricted Project, mgorny. · View Herald Transcript
cryptoad requested review of this revision.Oct 22 2020, 1:40 PM
hctim accepted this revision.Oct 22 2020, 1:42 PM
This revision is now accepted and ready to land.Oct 22 2020, 1:42 PM
nikic added a comment.Oct 22 2020, 1:48 PM

I can confirm that this builds fine for me.

I can confirm that this builds fine for me.

Thank you Nikita!

This revision was landed with ongoing or failed builds.Oct 22 2020, 1:56 PM
This revision was automatically updated to reflect the committed changes.
compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp