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

Unified Diff: third_party/crashpad/crashpad/test/paths_win.cc

Issue 2478633002: Update Crashpad to b47bf6c250c6b825dee1c5fbad9152c2c962e828 (Closed)
Patch Set: mac comment 2 Created 4 years, 1 month 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/test/paths_win.cc
diff --git a/third_party/crashpad/crashpad/test/paths_win.cc b/third_party/crashpad/crashpad/test/paths_win.cc
index 95d0264ed82ab36cf0e541315528d44585f4bbb8..947acd5cce951ca54d4aff8582877eb98a0489fa 100644
--- a/third_party/crashpad/crashpad/test/paths_win.cc
+++ b/third_party/crashpad/crashpad/test/paths_win.cc
@@ -16,13 +16,17 @@
#include <windows.h>
+#include "base/logging.h"
+
namespace crashpad {
namespace test {
// static
base::FilePath Paths::Executable() {
wchar_t executable_path[_MAX_PATH];
- GetModuleFileName(nullptr, executable_path, sizeof(executable_path));
+ unsigned int len =
+ GetModuleFileName(nullptr, executable_path, arraysize(executable_path));
+ PCHECK(len != 0 && len < arraysize(executable_path)) << "GetModuleFileName";
return base::FilePath(executable_path);
}
« no previous file with comments | « third_party/crashpad/crashpad/test/paths_mac.cc ('k') | third_party/crashpad/crashpad/test/scoped_temp_dir_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698