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

Unified Diff: third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc

Issue 2804713002: Update Crashpad to b4095401639ebe2ad33169e5c1d994065cbff1b8 (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc
diff --git a/third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc b/third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc
index 7a18dbef417025213e0d9ac3f6eea58a0a2a8f33..11df2b803cb27d37c7a43756dd1b34bc8e08c65e 100644
--- a/third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc
+++ b/third_party/crashpad/crashpad/snapshot/win/process_snapshot_win.cc
@@ -15,6 +15,7 @@
#include "snapshot/win/process_snapshot_win.h"
#include <stddef.h>
+#include <wchar.h>
#include <algorithm>
@@ -325,8 +326,9 @@ void ProcessSnapshotWin::InitializeUnloadedModules() {
uet.SizeOfImage,
uet.CheckSum,
uet.TimeDateStamp,
- base::UTF16ToUTF8(
- base::StringPiece16(uet.ImageName, arraysize(uet.ImageName)))));
+ base::UTF16ToUTF8(base::StringPiece16(
+ uet.ImageName,
+ wcsnlen(uet.ImageName, arraysize(uet.ImageName))))));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698