summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data_stream.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 21:09:57 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 21:09:57 +0000
commit12c4b16bf04096402cb1002155a0cb1c83f6a4fb (patch)
treedd02134b0c69b62d4eca8ec5824654f76d6f0617 /net/base/upload_data_stream.h
parent7f16087b563ff4f432f2c25a7922be39c0656b1f (diff)
downloadchromium_src-12c4b16bf04096402cb1002155a0cb1c83f6a4fb.zip
chromium_src-12c4b16bf04096402cb1002155a0cb1c83f6a4fb.tar.gz
chromium_src-12c4b16bf04096402cb1002155a0cb1c83f6a4fb.tar.bz2
Fix a memory stomper possible during redirect of an HTTP POST:
Hold a reference to UploadData from UploadDataStream, so it can't be deleted while in use. TODO: Regression test in a follow-up patch. BUG=74585 Review URL: http://codereview.chromium.org/6783027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/upload_data_stream.h')
-rw-r--r--net/base/upload_data_stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index 30c17c2..83df497 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -78,7 +78,7 @@ class UploadDataStream {
// Returns OK if the operation succeeds. Otherwise error code is returned.
int FillBuf();
- UploadData* data_;
+ scoped_refptr<UploadData> data_;
// This buffer is filled with data to be uploaded. The data to be sent is
// always at the front of the buffer. If we cannot send all of the buffer at