summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorcevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 20:43:31 +0000
committercevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 20:43:31 +0000
commit2c3c1325973e0ef626f4af6ae8cd31ec94eaab8c (patch)
tree4474fde18ea010259217983b17199267a0261fb9 /content
parent87fe79900d8dcd68f6aaa600d956197c150ea2b8 (diff)
downloadchromium_src-2c3c1325973e0ef626f4af6ae8cd31ec94eaab8c.zip
chromium_src-2c3c1325973e0ef626f4af6ae8cd31ec94eaab8c.tar.gz
chromium_src-2c3c1325973e0ef626f4af6ae8cd31ec94eaab8c.tar.bz2
Merge 179141
> Don't allow '\0' characters in FilePath. > > BUG=169777 > > > Review URL: https://chromiumcodereview.appspot.com/11642041 TBR=aedla@chromium.org Review URL: https://codereview.chromium.org/12193012 git-svn-id: svn://svn.chromium.org/chrome/branches/1364/src@180509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/download/save_package_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/download/save_package_unittest.cc b/content/browser/download/save_package_unittest.cc
index 89fb89a..a34e138 100644
--- a/content/browser/download/save_package_unittest.cc
+++ b/content/browser/download/save_package_unittest.cc
@@ -109,7 +109,7 @@ class SavePackageTest : public RenderViewHostImplTestHarness {
temp_dir_.path().AppendASCII("testfile_files"));
// We need to construct a path that is *almost* kMaxFilePathLength long
- long_file_name.resize(kMaxFilePathLength + long_file_name.length());
+ long_file_name.reserve(kMaxFilePathLength + long_file_name.length());
while (long_file_name.length() < kMaxFilePathLength)
long_file_name += long_file_name;
long_file_name.resize(