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

Issue 382143007: Make sure read/write buffer alive in TCPSocketLibevent. (Closed)

Created:
6 years, 5 months ago by byungchul
Modified:
6 years, 5 months ago
Reviewers:
Ryan Sleevi, mmenke, gunsch
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make sure read/write buffer alive in TCPSocketLibevent. SocketLibevent release ref-count of read/write buffer before calling callback. Need to hold ref-count of buffer in TCPSocketLibevent to make sure the buffer alive in callback. BUG=393221 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282756

Patch Set 1 #

Total comments: 4

Patch Set 2 : Applied comments. #

Total comments: 4

Patch Set 3 : Moved comments to .cc #

Patch Set 4 : Updated comment as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M net/socket/tcp_socket_libevent.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/tcp_socket_libevent.cc View 1 2 3 4 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
byungchul
This is a fix for regression error. Please review.
6 years, 5 months ago (2014-07-11 16:54:57 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/382143007/diff/1/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/382143007/diff/1/net/socket/tcp_socket_libevent.cc#newcode530 net/socket/tcp_socket_libevent.cc:530: buf->data()); Right, this is the unsafe access point. https://codereview.chromium.org/382143007/diff/1/net/socket/tcp_socket_libevent.h ...
6 years, 5 months ago (2014-07-11 18:13:35 UTC) #2
byungchul
https://codereview.chromium.org/382143007/diff/1/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/382143007/diff/1/net/socket/tcp_socket_libevent.cc#newcode530 net/socket/tcp_socket_libevent.cc:530: buf->data()); On 2014/07/11 18:13:35, Ryan Sleevi wrote: > Right, ...
6 years, 5 months ago (2014-07-11 18:58:19 UTC) #3
mmenke
LGTM
6 years, 5 months ago (2014-07-11 19:01:41 UTC) #4
mmenke
LGTM
6 years, 5 months ago (2014-07-11 19:01:43 UTC) #5
Ryan Sleevi
lgtm https://codereview.chromium.org/382143007/diff/20001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/382143007/diff/20001/net/socket/tcp_socket_libevent.cc#newcode214 net/socket/tcp_socket_libevent.cc:214: base::Unretained(this), make_scoped_refptr(buf), callback)); This is where I would ...
6 years, 5 months ago (2014-07-11 19:04:43 UTC) #6
byungchul
The CQ bit was checked by byungchul@chromium.org
6 years, 5 months ago (2014-07-11 21:32:50 UTC) #7
byungchul
The CQ bit was unchecked by byungchul@chromium.org
6 years, 5 months ago (2014-07-11 21:33:27 UTC) #8
byungchul
https://codereview.chromium.org/382143007/diff/20001/net/socket/tcp_socket_libevent.cc File net/socket/tcp_socket_libevent.cc (right): https://codereview.chromium.org/382143007/diff/20001/net/socket/tcp_socket_libevent.cc#newcode214 net/socket/tcp_socket_libevent.cc:214: base::Unretained(this), make_scoped_refptr(buf), callback)); On 2014/07/11 19:04:42, Ryan Sleevi wrote: ...
6 years, 5 months ago (2014-07-11 21:35:52 UTC) #9
byungchul
The CQ bit was checked by byungchul@chromium.org
6 years, 5 months ago (2014-07-11 21:35:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/byungchul@chromium.org/382143007/60001
6 years, 5 months ago (2014-07-11 21:37:31 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-12 00:33:18 UTC) #12
Message was sent while issue was closed.
Change committed as 282756

Powered by Google App Engine
This is Rietveld 408576698