Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: src/processor/microdump.cc

Issue 1742843002: Properly handle microdump processing, when the system_log file contains an incomplete microdump sec… (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Reduce size of the test microdump file. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/processor/microdump_processor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/processor/microdump.cc
diff --git a/src/processor/microdump.cc b/src/processor/microdump.cc
index 1043c482adc3fca90860aadeceaca9130763d5bf..e3dececbe6b64a5734fe5edc5963bff971b1136b 100644
--- a/src/processor/microdump.cc
+++ b/src/processor/microdump.cc
@@ -213,13 +213,12 @@ Microdump::Microdump(const string& contents)
in_microdump = true;
continue;
}
- if (line.find(kMicrodumpEnd) != string::npos) {
- break;
- }
-
if (!in_microdump) {
continue;
}
+ if (line.find(kMicrodumpEnd) != string::npos) {
+ break;
+ }
size_t pos;
if ((pos = line.find(kOsKey)) != string::npos) {
« no previous file with comments | « no previous file | src/processor/microdump_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698