mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-26 09:14:58 +01:00
fix pointer style to match the style guide
We do this in a lot of places, but we're inconsistent. Normalize the code to the Google C++ style guide. Change-Id: Ic2aceab661ce8f6b993dda21b1cdf5d2198dcbbf Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2262932 Reviewed-by: Sterling Augustine <saugustine@google.com> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
a741027533
commit
09b056975d
289 changed files with 3770 additions and 3775 deletions
|
|
@ -69,30 +69,30 @@ static const size_t kHugeBump = 90;
|
|||
// The maximum number of bytes to disassemble past the program counter.
|
||||
static const size_t kDisassembleBytesBeyondPC = 2048;
|
||||
|
||||
ExploitabilityWin::ExploitabilityWin(Minidump *dump,
|
||||
ProcessState *process_state)
|
||||
ExploitabilityWin::ExploitabilityWin(Minidump* dump,
|
||||
ProcessState* process_state)
|
||||
: Exploitability(dump, process_state) { }
|
||||
|
||||
ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
|
||||
MinidumpException *exception = dump_->GetException();
|
||||
MinidumpException* exception = dump_->GetException();
|
||||
if (!exception) {
|
||||
BPLOG(INFO) << "Minidump does not have exception record.";
|
||||
return EXPLOITABILITY_ERR_PROCESSING;
|
||||
}
|
||||
|
||||
const MDRawExceptionStream *raw_exception = exception->exception();
|
||||
const MDRawExceptionStream* raw_exception = exception->exception();
|
||||
if (!raw_exception) {
|
||||
BPLOG(INFO) << "Could not obtain raw exception info.";
|
||||
return EXPLOITABILITY_ERR_PROCESSING;
|
||||
}
|
||||
|
||||
const MinidumpContext *context = exception->GetContext();
|
||||
const MinidumpContext* context = exception->GetContext();
|
||||
if (!context) {
|
||||
BPLOG(INFO) << "Could not obtain exception context.";
|
||||
return EXPLOITABILITY_ERR_PROCESSING;
|
||||
}
|
||||
|
||||
MinidumpMemoryList *memory_list = dump_->GetMemoryList();
|
||||
MinidumpMemoryList* memory_list = dump_->GetMemoryList();
|
||||
bool memory_available = true;
|
||||
if (!memory_list) {
|
||||
BPLOG(INFO) << "Minidump memory segments not available.";
|
||||
|
|
@ -195,7 +195,7 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
|
|||
return EXPLOITABILITY_ERR_PROCESSING;
|
||||
break;
|
||||
}
|
||||
MinidumpMemoryRegion *instruction_region = 0;
|
||||
MinidumpMemoryRegion* instruction_region = 0;
|
||||
if (memory_available) {
|
||||
instruction_region =
|
||||
memory_list->GetMemoryRegionForAddress(instruction_ptr);
|
||||
|
|
@ -211,7 +211,7 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
|
|||
available_memory = available_memory > kDisassembleBytesBeyondPC ?
|
||||
kDisassembleBytesBeyondPC : available_memory;
|
||||
if (available_memory) {
|
||||
const uint8_t *raw_memory =
|
||||
const uint8_t* raw_memory =
|
||||
instruction_region->GetMemory() + memory_offset;
|
||||
DisassemblerX86 disassembler(raw_memory,
|
||||
available_memory,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue