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

Issue 660194: Return a soft error when we detect the 3rd party problem causing bug 27870. (Closed)

Created:
10 years, 10 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin-cc_chromium.org
Visibility:
Public.

Description

Return a soft error when we detect the 3rd party problem causing bug 27870. Return an error when winsock reports it wrote more than we asked it to write. Remove some debugging. BUG=27870 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40197

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : More comments #

Total comments: 2

Patch Set 4 : Address signed/unsigned issue #

Total comments: 2

Patch Set 5 : Make excessively large return values return a soft error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -19 lines) Patch
M net/base/net_error_list.h View 3 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_stream_parser.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/http/http_stream_parser.cc View 2 chunks +1 line, -6 lines 0 comments Download
M net/socket/tcp_client_socket_win.cc View 1 2 3 4 4 chunks +27 lines, -10 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vandebo (ex-Chrome)
10 years, 10 months ago (2010-02-26 19:54:19 UTC) #1
wtc
http://codereview.chromium.org/660194/diff/1/4 File net/socket/tcp_client_socket_win.cc (right): http://codereview.chromium.org/660194/diff/1/4#newcode521 net/socket/tcp_client_socket_win.cc:521: return static_cast<int>(num); The same correction needs to be applied ...
10 years, 10 months ago (2010-02-26 20:13:01 UTC) #2
wtc
http://codereview.chromium.org/660194/diff/1/4 File net/socket/tcp_client_socket_win.cc (right): http://codereview.chromium.org/660194/diff/1/4#newcode698 net/socket/tcp_client_socket_win.cc:698: int rv = num_bytes; On 2010/02/26 20:13:01, wtc wrote: ...
10 years, 10 months ago (2010-02-26 20:14:09 UTC) #3
eroman
LGTM. Based on the discussions in the bug thread, you may want to leave the ...
10 years, 10 months ago (2010-02-26 22:31:03 UTC) #4
vandebo (ex-Chrome)
An error code seems to be the way to go. I added a check at ...
10 years, 10 months ago (2010-02-26 22:57:34 UTC) #5
eroman
http://codereview.chromium.org/660194/diff/1005/1009 File net/socket/tcp_client_socket_win.cc (right): http://codereview.chromium.org/660194/diff/1005/1009#newcode518 net/socket/tcp_client_socket_win.cc:518: if (static_cast<int>(num) > buf_len) { Note that |num| is ...
10 years, 10 months ago (2010-02-26 23:10:29 UTC) #6
vandebo (ex-Chrome)
On 2010/02/26 23:10:29, eroman wrote: > http://codereview.chromium.org/660194/diff/1005/1009#newcode518 > net/socket/tcp_client_socket_win.cc:518: if (static_cast<int>(num) > buf_len) { > ...
10 years, 10 months ago (2010-02-27 00:16:38 UTC) #7
eroman
http://codereview.chromium.org/660194/diff/1012/19 File net/socket/tcp_client_socket_win.cc (right): http://codereview.chromium.org/660194/diff/1012/19#newcode519 net/socket/tcp_client_socket_win.cc:519: CHECK(rv >= 0); Why not make this par to ...
10 years, 10 months ago (2010-02-27 00:31:10 UTC) #8
vandebo (ex-Chrome)
On 2010/02/27 00:31:10, eroman wrote: > http://codereview.chromium.org/660194/diff/1012/19 > File net/socket/tcp_client_socket_win.cc (right): > > http://codereview.chromium.org/660194/diff/1012/19#newcode519 > ...
10 years, 10 months ago (2010-02-27 00:49:36 UTC) #9
eroman
10 years, 10 months ago (2010-02-27 01:00:10 UTC) #10
LGTM!

Powered by Google App Engine
This is Rietveld 408576698