diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 21:27:43 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-23 21:27:43 +0000 |
commit | 9ddbcd95dd5c1e38a3b38cfc0c8c913a7610a8b9 (patch) | |
tree | 3d6f5a9b005c5707f736e0d9bf8497cdb55951f4 /chrome/browser/renderer_host | |
parent | 2e102efa6aee73d64c7242ec08be00fc68a3dbf7 (diff) | |
download | chromium_src-9ddbcd95dd5c1e38a3b38cfc0c8c913a7610a8b9.zip chromium_src-9ddbcd95dd5c1e38a3b38cfc0c8c913a7610a8b9.tar.gz chromium_src-9ddbcd95dd5c1e38a3b38cfc0c8c913a7610a8b9.tar.bz2 |
Fix an off by 1 error in the Linux Breakpad guid.
BUG=22067
TEST=No more random strings in crash client GUIDs.
Review URL: http://codereview.chromium.org/213038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/render_crash_handler_host_linux.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_crash_handler_host_linux.cc b/chrome/browser/renderer_host/render_crash_handler_host_linux.cc index ec83663..4e9fdf9 100644 --- a/chrome/browser/renderer_host/render_crash_handler_host_linux.cc +++ b/chrome/browser/renderer_host/render_crash_handler_host_linux.cc @@ -335,6 +335,9 @@ void RenderCrashHandlerHostLinux::OnFileCanReadWithoutBlocking(int fd) { HANDLE_EINTR(sendmsg(signal_fd, &msg, MSG_DONTWAIT | MSG_NOSIGNAL)); HANDLE_EINTR(close(signal_fd)); + // Sanitize the string data a bit more + guid[kGuidSize] = crash_url[kMaxActiveURLSize] = distro[kDistroSize] = 0; + BreakpadInfo info; info.filename = minidump_filename.c_str(); info.process_type = "renderer"; |