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

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

Issue 2236493004: Update Crashpad to 56b14bceefcec03fc11b3222c435522922f65640 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/test/paths_mac.cc
diff --git a/third_party/crashpad/crashpad/test/paths_mac.cc b/third_party/crashpad/crashpad/test/paths_mac.cc
index ce6c5f3bacc9292abb2b3b87729b11b99b5cd7be..f3dca57a96bf46d5da5faf2f8bdc0c027cf6b408 100644
--- a/third_party/crashpad/crashpad/test/paths_mac.cc
+++ b/third_party/crashpad/crashpad/test/paths_mac.cc
@@ -27,7 +27,7 @@ base::FilePath Paths::Executable() {
uint32_t executable_length = 0;
_NSGetExecutablePath(nullptr, &executable_length);
DCHECK_GT(executable_length, 1u);
- std::string executable_path(executable_length, std::string::value_type());
+ std::string executable_path(executable_length - 1, std::string::value_type());
int rv = _NSGetExecutablePath(&executable_path[0], &executable_length);
DCHECK_EQ(rv, 0);

Powered by Google App Engine
This is Rietveld 408576698