From 12c4b16bf04096402cb1002155a0cb1c83f6a4fb Mon Sep 17 00:00:00 2001 From: "eroman@chromium.org" Date: Thu, 31 Mar 2011 21:09:57 +0000 Subject: 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 --- net/base/upload_data_stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/base/upload_data_stream.h') 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 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 -- cgit v1.1