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

Issue 127463002: google_apis: Fix use-after-free of URLFetcher* in ResponseWriter (Closed)

Created:
6 years, 11 months ago by hashimoto
Modified:
6 years, 11 months ago
Reviewers:
kinaba
CC:
chromium-reviews
Visibility:
Public.

Description

google_apis: Fix use-after-free of URLFetcher* in ResponseWriter URLFetcher can be destroyed on the UI thread at any moment, while ResponseWriter works on the IO thread. BUG=331822 TEST=See no crash after following the repro steps described in the BUG.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M google_apis/drive/base_requests.h View 1 chunk +3 lines, -0 lines 0 comments Download
M google_apis/drive/base_requests.cc View 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
hashimoto
6 years, 11 months ago (2014-01-08 02:14:13 UTC) #1
kinaba
lgtm
6 years, 11 months ago (2014-01-08 03:02:40 UTC) #2
hashimoto
6 years, 11 months ago (2014-01-08 05:19:32 UTC) #3
Noticed that this fix not the right one because there is a chance for a crash
where url_fetcher_ is destroyed at a timing between l. 147 and l. 148.

Made another fix, PTL at https://codereview.chromium.org/127613002/.

Powered by Google App Engine
This is Rietveld 408576698