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

Issue 418035: A large Content-Length header followed by a connection close could trigger an... (Closed)

Created:
11 years, 1 month ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

A large Content-Length header followed by a connection close could trigger an out of memory condition. Fixed problem, added unit test, and clarified the API. This is probably the real problem in issue 25826. BUG=28346, 25826 TEST=HttpNetworkTransactionTest.LargeContentLengthThenClose Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32856

Patch Set 1 #

Patch Set 2 : Fix windows compile #

Total comments: 7

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -17 lines) Patch
M net/base/io_buffer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M net/http/http_stream.h View 1 chunk +8 lines, -7 lines 0 comments Download
M net/http/http_stream_parser.cc View 1 2 2 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vandebo (ex-Chrome)
The root of the problem was casting from int64 to int before validating the result ...
11 years, 1 month ago (2009-11-20 23:28:44 UTC) #1
eroman
LGTM http://codereview.chromium.org/418035/diff/4001/4004 File net/http/http_stream_parser.cc (right): http://codereview.chromium.org/418035/diff/4001/4004#newcode87 Line 87: DCHECK(buf_len <= kMaxHeaderBufSize); DCHECK_LE http://codereview.chromium.org/418035/diff/4001/4004#newcode386 Line 386: ...
11 years, 1 month ago (2009-11-20 23:55:59 UTC) #2
wtc
LGTM. http://codereview.chromium.org/418035/diff/4001/4003 File net/http/http_network_transaction_unittest.cc (right): http://codereview.chromium.org/418035/diff/4001/4003#newcode3879 Line 3879: TEST_F(HttpNetworkTransactionTest, LargeContentLengthThenReset) { Nit: Reset => Close ...
11 years, 1 month ago (2009-11-21 05:55:02 UTC) #3
vandebo (ex-Chrome)
Checked in patch set 3. http://codereview.chromium.org/418035/diff/4001/4003 File net/http/http_network_transaction_unittest.cc (right): http://codereview.chromium.org/418035/diff/4001/4003#newcode3879 net/http/http_network_transaction_unittest.cc:3879: TEST_F(HttpNetworkTransactionTest, LargeContentLengthThenReset) { On ...
11 years, 1 month ago (2009-11-23 21:32:47 UTC) #4
wtc
11 years, 1 month ago (2009-11-23 22:50:08 UTC) #5
On 2009/11/23 21:32:47, vandebo wrote:
> Checked in patch set 3.

Good.  Steve, please merge this fix to the 249 branch
this week.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698