commit | 18aa6faf2e044bb22a6331a95b2319fa5f751ea8 | [log] [tgz] |
---|---|---|
author | Ben Hamilton <benhamilton@google.com> | Fri May 26 15:52:25 2023 |
committer | Joshua Peraza <jperaza@chromium.org> | Fri May 26 16:34:47 2023 |
tree | 7df80ea6ba0971f1313b194d87b0d1b4872b58cc | |
parent | 02fe1eef8e4753cfa686db52fc375e17f5d23c84 [diff] |
[Breakpad] Fix hex formatting for MinidumpCrashpadInfo::Print() The hex formatting in MinidumpCrashpadInfo::Print() was missing the leading 0, so byte values < 128 were not possible to decode. Change-Id: Ib355bcdaf86e91d644045df645fb4fa75332aa4b Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4571100 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index f0f9253..83f72b9 100644 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc
@@ -5503,7 +5503,7 @@ // Value represents something else. char buffer[3]; for (const uint8_t& v : annot.value) { - snprintf(buffer, sizeof(buffer), "%X", v); + snprintf(buffer, sizeof(buffer), "%02X", v); str_value.append(buffer); } }