aboutsummaryrefslogtreecommitdiff
path: root/src/processor
diff options
context:
space:
mode:
authorSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-10-15 19:43:07 +0000
committerSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-10-15 19:43:07 +0000
commit361f24eac7fb452a795709479fc48fd59b04bc1f (patch)
tree3b7c61796115cb753f4b47b56bb5eccda0122a91 /src/processor
parentFix for bug: debug checks for vector::operator[] fail in breakpad. (diff)
downloadbreakpad-361f24eac7fb452a795709479fc48fd59b04bc1f.tar.xz
Fix some compiler warnings: char*->const char*, default in swtch.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@713 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor')
-rw-r--r--src/processor/disassembler_x86.cc6
-rw-r--r--src/processor/exploitability_win.cc3
2 files changed, 8 insertions, 1 deletions
diff --git a/src/processor/disassembler_x86.cc b/src/processor/disassembler_x86.cc
index 5caa016f..31af24fc 100644
--- a/src/processor/disassembler_x86.cc
+++ b/src/processor/disassembler_x86.cc
@@ -108,6 +108,8 @@ u_int32_t DisassemblerX86::NextInstruction() {
}
}
break;
+ default:
+ break;
}
break;
@@ -160,6 +162,8 @@ u_int32_t DisassemblerX86::NextInstruction() {
if (dest->data.reg.id == bad_register_.id)
pushed_bad_value_ = true;
break;
+ default:
+ break;
}
}
@@ -195,6 +199,8 @@ u_int32_t DisassemblerX86::NextInstruction() {
memcpy(&bad_register_, &dest->data.reg, sizeof(libdis::x86_reg_t));
}
break;
+ default:
+ break;
}
}
diff --git a/src/processor/exploitability_win.cc b/src/processor/exploitability_win.cc
index 9837b791..443635fb 100644
--- a/src/processor/exploitability_win.cc
+++ b/src/processor/exploitability_win.cc
@@ -100,7 +100,6 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
}
u_int64_t address = process_state_->crash_address();
u_int32_t exception_code = raw_exception->exception_record.exception_code;
- u_int32_t exception_flags = raw_exception->exception_record.exception_flags;
u_int32_t exploitability_weight = 0;
@@ -239,6 +238,8 @@ ExploitabilityRating ExploitabilityWin::CheckPlatformExploitability() {
case libdis::insn_string:
exploitability_weight += kHugeBump;
break;
+ default:
+ break;
}
// Loop the disassembler through the code and check if it
// IDed any interesting conditions in the near future.