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

Issue 1732493002: Prevent URLFetcher::AppendChunkedData from dereferencing NULL pointers. (Closed)

Created:
4 years, 10 months ago by mmenke
Modified:
4 years, 8 months ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent URLFetcher::AppendChunkedData from dereferencing NULL pointers. Previously, this would happen if it was called after a request failed, while a request was being throttled, or if a request was redirected and lost its body without having sent the entire upload body (Either redirected by stuff outside net with never uploading the body, or redirected by stuff outside net after a network error). BUG=568091 Committed: https://crrev.com/56b0cbb91b8ae09e2304eb8e6503ebd729332c35 Cr-Commit-Position: refs/heads/master@{#383571}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Fix stuff #

Patch Set 4 : Fix Cronet #

Total comments: 14

Patch Set 5 : Merge #

Total comments: 4

Patch Set 6 : Response to comments #

Patch Set 7 : Missed one #

Patch Set 8 : Merge #

Patch Set 9 : Merge #

Total comments: 17

Patch Set 10 : Resposne to comments #

Patch Set 11 : Remove bonus close paren #

Patch Set 12 : merge #

Total comments: 12

Patch Set 13 : Response to comments #

Patch Set 14 : Remove unused variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -91 lines) Patch
M components/cronet/android/url_request_adapter.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M components/cronet/android/url_request_adapter.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -9 lines 0 comments Download
M net/base/chunked_upload_data_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +44 lines, -0 lines 0 comments Download
M net/base/chunked_upload_data_stream.cc View 1 chunk +22 lines, -2 lines 0 comments Download
M net/base/chunked_upload_data_stream_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 2 3 4 5 4 chunks +16 lines, -11 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +95 lines, -0 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -21 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -17 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +50 lines, -30 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
mmenke
Misha: Mind reviewing? Sending this to you because you did my upload refactoring reviews, and ...
4 years, 9 months ago (2016-03-02 19:42:38 UTC) #5
mef
Sorry about delay, I was doing bug triage. I'm indeed not very familiar with URLFetcher, ...
4 years, 9 months ago (2016-03-03 16:49:33 UTC) #6
mmenke
On 2016/03/03 16:49:33, mef wrote: > Sorry about delay, I was doing bug triage. I'm ...
4 years, 9 months ago (2016-03-03 17:04:46 UTC) #7
mef
https://codereview.chromium.org/1732493002/diff/120001/net/base/chunked_upload_data_stream.cc File net/base/chunked_upload_data_stream.cc (right): https://codereview.chromium.org/1732493002/diff/120001/net/base/chunked_upload_data_stream.cc#newcode18 net/base/chunked_upload_data_stream.cc:18: if (!upload_data_stream_) On 2016/03/03 17:04:45, mmenke wrote: > On ...
4 years, 9 months ago (2016-03-08 17:19:23 UTC) #8
mmenke
https://codereview.chromium.org/1732493002/diff/120001/net/base/chunked_upload_data_stream.cc File net/base/chunked_upload_data_stream.cc (right): https://codereview.chromium.org/1732493002/diff/120001/net/base/chunked_upload_data_stream.cc#newcode18 net/base/chunked_upload_data_stream.cc:18: if (!upload_data_stream_) On 2016/03/08 17:19:22, mef wrote: > On ...
4 years, 9 months ago (2016-03-09 17:27:15 UTC) #9
mmenke
https://codereview.chromium.org/1732493002/diff/120001/net/url_request/url_fetcher_core.h File net/url_request/url_fetcher_core.h (right): https://codereview.chromium.org/1732493002/diff/120001/net/url_request/url_fetcher_core.h#newcode275 net/url_request/url_fetcher_core.h:275: bool is_chunked_upload_; // True if using chunked transfer encoding ...
4 years, 9 months ago (2016-03-09 17:35:01 UTC) #10
mmenke
Misha: Ping? No rush here, just want to make sure it's still on your radar.
4 years, 9 months ago (2016-03-15 15:58:38 UTC) #11
mmenke
On 2016/03/15 15:58:38, mmenke wrote: > Misha: Ping? No rush here, just want to make ...
4 years, 9 months ago (2016-03-22 15:08:03 UTC) #12
mef
On 2016/03/22 15:08:03, mmenke wrote: > On 2016/03/15 15:58:38, mmenke wrote: > > Misha: Ping? ...
4 years, 9 months ago (2016-03-22 15:13:14 UTC) #13
mmenke
On 2016/03/22 15:13:14, mef wrote: > On 2016/03/22 15:08:03, mmenke wrote: > > On 2016/03/15 ...
4 years, 9 months ago (2016-03-22 15:14:31 UTC) #14
mmenke
[+eroman]: Eric, mind reviewing? This is a fix for a pretty obscure crash, and I ...
4 years, 9 months ago (2016-03-22 15:19:55 UTC) #18
eroman
sure, will take a look later today
4 years, 9 months ago (2016-03-22 16:21:16 UTC) #19
eroman
https://codereview.chromium.org/1732493002/diff/220001/components/cronet/android/url_request_adapter.cc File components/cronet/android/url_request_adapter.cc (right): https://codereview.chromium.org/1732493002/diff/220001/components/cronet/android/url_request_adapter.cc#newcode133 components/cronet/android/url_request_adapter.cc:133: // while appendChunk was posting the task from an ...
4 years, 9 months ago (2016-03-22 19:05:38 UTC) #20
mmenke
Thanks for the thought out comments! https://codereview.chromium.org/1732493002/diff/220001/components/cronet/android/url_request_adapter.cc File components/cronet/android/url_request_adapter.cc (right): https://codereview.chromium.org/1732493002/diff/220001/components/cronet/android/url_request_adapter.cc#newcode133 components/cronet/android/url_request_adapter.cc:133: // while appendChunk ...
4 years, 9 months ago (2016-03-22 20:01:51 UTC) #21
mmenke
https://codereview.chromium.org/1732493002/diff/220001/net/base/chunked_upload_data_stream.h File net/base/chunked_upload_data_stream.h (right): https://codereview.chromium.org/1732493002/diff/220001/net/base/chunked_upload_data_stream.h#newcode95 net/base/chunked_upload_data_stream.h:95: base::WeakPtrFactory<ChunkedUploadDataStream> weak_factory_; On 2016/03/22 20:01:50, mmenke wrote: > On ...
4 years, 9 months ago (2016-03-22 20:19:19 UTC) #22
eroman
lgtm https://codereview.chromium.org/1732493002/diff/280001/chrome/browser/profiles/profile_browsertest.cc File chrome/browser/profiles/profile_browsertest.cc (left): https://codereview.chromium.org/1732493002/diff/280001/chrome/browser/profiles/profile_browsertest.cc#oldcode530 chrome/browser/profiles/profile_browsertest.cc:530: IN_PROC_BROWSER_TEST_F(ProfileBrowserTest, Why the removals? https://codereview.chromium.org/1732493002/diff/280001/net/base/chunked_upload_data_stream.h File net/base/chunked_upload_data_stream.h (right): ...
4 years, 9 months ago (2016-03-26 00:55:16 UTC) #23
mmenke
Thanks! https://codereview.chromium.org/1732493002/diff/280001/chrome/browser/profiles/profile_browsertest.cc File chrome/browser/profiles/profile_browsertest.cc (left): https://codereview.chromium.org/1732493002/diff/280001/chrome/browser/profiles/profile_browsertest.cc#oldcode530 chrome/browser/profiles/profile_browsertest.cc:530: IN_PROC_BROWSER_TEST_F(ProfileBrowserTest, On 2016/03/26 00:55:16, eroman wrote: > Why ...
4 years, 8 months ago (2016-03-28 17:33:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1732493002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1732493002/300001
4 years, 8 months ago (2016-03-28 17:33:28 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/201127)
4 years, 8 months ago (2016-03-28 17:44:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1732493002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1732493002/320001
4 years, 8 months ago (2016-03-28 19:57:58 UTC) #32
commit-bot: I haz the power
Committed patchset #14 (id:320001)
4 years, 8 months ago (2016-03-28 21:35:03 UTC) #34
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 21:36:13 UTC) #36
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/56b0cbb91b8ae09e2304eb8e6503ebd729332c35
Cr-Commit-Position: refs/heads/master@{#383571}

Powered by Google App Engine
This is Rietveld 408576698