• Vlad Tsyrklevich's avatar
    GWP-ASan: Refactor GuardedPageAllocator into two objects · 5ad4c5de
    Vlad Tsyrklevich authored
    Refactor a trivially copyable (e.g. plain old data) object out of the
    current GuardedPageAllocator. This 'base state' object encapsulates
    just the information required by the crash handler. Because its
    construction/destruction is trivial, a base state object can be
    overwritten with out-of-process memory and destructed without concerns
    about undefined behavior or destructing complex objects with pointers
    from another process.
    
    The GuardedPageAllocator encapsulates all of the remaining data and
    allocation logic that does not to be reached by the crash handler. As
    such, it's been refactored into client/.
    
    Bug: 896019
    
    Change-Id: I418411b914a61c592f8b585d55058aa5a705acfb
    Reviewed-on: https://chromium-review.googlesource.com/c/1339246
    Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org>
    Reviewed-by: default avatarVitaly Buka <vitalybuka@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#610902}
    5ad4c5de
crash_key.h 674 Bytes