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

Issue 570713003: Avoid unsafe usage of CancelIo() within Windows SyncSocket. (Closed)

Created:
6 years, 3 months ago by DaleCurtis
Modified:
6 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Avoid unsafe usage of CancelIo() within Windows SyncSocket. The CancelIo() operation does not synchronously cancel IO operations, we must wait for them to return before returning to avoid writes to resources which may have already been destructed. See this blog post for more information: http://blogs.msdn.com/b/oldnewthing/archive/2011/02/02/10123392.aspx BUG=413494 TEST=manual inspect of cancellation states. Committed: https://crrev.com/3bdbb01600f8ca78609794c23f2f1c8410a78e98 Cr-Commit-Position: refs/heads/master@{#294946}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix clients. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -17 lines) Patch
M base/sync_socket_win.cc View 1 chunk +18 lines, -12 lines 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/audio_device_thread.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
DaleCurtis
Due to the racy nature of this issue, I couldn't think of a way to ...
6 years, 3 months ago (2014-09-12 21:40:34 UTC) #2
rvargas (doing something else)
lgtm https://codereview.chromium.org/570713003/diff/1/base/sync_socket_win.cc File base/sync_socket_win.cc (left): https://codereview.chromium.org/570713003/diff/1/base/sync_socket_win.cc#oldcode163 base/sync_socket_win.cc:163: count = 0; Isn't this needed anymore? That ...
6 years, 3 months ago (2014-09-12 22:57:50 UTC) #3
DaleCurtis
https://codereview.chromium.org/570713003/diff/1/base/sync_socket_win.cc File base/sync_socket_win.cc (left): https://codereview.chromium.org/570713003/diff/1/base/sync_socket_win.cc#oldcode163 base/sync_socket_win.cc:163: count = 0; On 2014/09/12 22:57:50, rvargas wrote: > ...
6 years, 3 months ago (2014-09-12 23:38:02 UTC) #6
awong
LGTM
6 years, 3 months ago (2014-09-15 18:21:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/570713003/60001
6 years, 3 months ago (2014-09-15 19:16:49 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/14333)
6 years, 3 months ago (2014-09-15 20:26:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/570713003/60001
6 years, 3 months ago (2014-09-15 23:32:09 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:60001) as e40a88e3c5020ad27ca341741fe205a10cf59cbb
6 years, 3 months ago (2014-09-16 00:44:13 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 00:46:07 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3bdbb01600f8ca78609794c23f2f1c8410a78e98
Cr-Commit-Position: refs/heads/master@{#294946}

Powered by Google App Engine
This is Rietveld 408576698