DescriptionAdd and use scoped-right-returning wrappers for Mach bootstrap routines
This wraps bootstrap_check_in() in BootstrapCheckIn(), and
bootstrap_look_up() in BootstrapLookUp(). The wrappers make it more
difficult to accidentally leak a returned right. They’re easier to use,
encapsulating common error checking and logging, simplifying all call
sites.
TEST=crashpad_util_test MachExtensions.BootstrapCheckInAndLookUp
R=rsesek@chromium.org
Committed: https://chromium.googlesource.com/crashpad/crashpad/+/bb13efbda7ef55bde9a4afa870b4155ead78cd45
Patch Set 1 #Patch Set 2 : Self-review #
Total comments: 2
Messages
Total messages: 5 (1 generated)
|