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

Issue 165362: Try to fix crash in OCSP handlers. (Closed)

Created:
11 years, 4 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, willchan no longer on Chromium
Visibility:
Public.

Description

Try to fix crash in OCSP handlers. Make sure OCSPRequestSession::Core is cancelled when OCSPRequestSession is deleted as URLFetcher does. Revert http://src.chromium.org/viewvc/chrome?view=rev&revision=23575 BUG=18907, 10911 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23696

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -24 lines) Patch
M net/base/x509_certificate_nss.cc View 3 4 chunks +3 lines, -16 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 4 5 8 chunks +18 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ukai
11 years, 4 months ago (2009-08-12 02:04:01 UTC) #1
darin (slow to review)
http://codereview.chromium.org/165362/diff/1/2 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/165362/diff/1/2#newcode254 Line 254: delete request_; is it necessary to delete the ...
11 years, 4 months ago (2009-08-12 06:48:41 UTC) #2
ukai
Thanks for review. http://codereview.chromium.org/165362/diff/1/2 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/165362/diff/1/2#newcode254 Line 254: delete request_; On 2009/08/12 06:48:41, ...
11 years, 4 months ago (2009-08-12 07:14:13 UTC) #3
wtc
Fumitoshi, I don't understand why this fix works. Could you explain why using a lock ...
11 years, 4 months ago (2009-08-13 00:04:33 UTC) #4
ukai
Thanks for review. I'm back from vacation. On 2009/08/13 00:04:33, wtc wrote: > Fumitoshi, > ...
11 years, 4 months ago (2009-08-18 09:28:48 UTC) #5
wtc
Hi Fumitoshi, Welcome back! I hope you had a good vacation. On 2009/08/18 09:28:48, ukai ...
11 years, 4 months ago (2009-08-19 01:18:47 UTC) #6
wtc
http://codereview.chromium.org/165362/diff/3001/4001 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/165362/diff/3001/4001#newcode149 Line 149: DCHECK(!request_); I like this DCHECK. http://codereview.chromium.org/165362/diff/3001/4001#newcode252 Line 252: ...
11 years, 4 months ago (2009-08-19 01:19:28 UTC) #7
wtc
Fumitoshi, One way to prevent Core from using the ocsp_req_ backpointer after OCSPRequestSession is deleted ...
11 years, 4 months ago (2009-08-19 02:24:05 UTC) #8
ukai
Thanks for review. Just set ocsp_req_ to NULL when Cancel, and I'll try collapse OCSPRequestSession ...
11 years, 4 months ago (2009-08-19 02:41:51 UTC) #9
wtc
LGTM. You can check in with the following changes. Note that setting ocsp_req_ to NULL ...
11 years, 4 months ago (2009-08-19 04:01:52 UTC) #10
ukai
On 2009/08/19 04:01:52, wtc wrote: > LGTM. You can check in with the following changes. ...
11 years, 4 months ago (2009-08-19 04:07:59 UTC) #11
wtc
LGTM! http://codereview.chromium.org/165362/diff/6006/5006 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/165362/diff/6006/5006#newcode297 Line 297: // URLRequest destructor will call request_->Cancel() first. ...
11 years, 4 months ago (2009-08-19 04:22:13 UTC) #12
ukai
Thanks! Fixed both. On 2009/08/19 04:22:13, wtc wrote: > LGTM! > > http://codereview.chromium.org/165362/diff/6006/5006 > File ...
11 years, 4 months ago (2009-08-19 04:28:34 UTC) #13
wtc
11 years, 4 months ago (2009-08-19 04:33:59 UTC) #14
LGTM.  Hopefully this will fix the crash.

Unfortunately I can't explain the strange change of
'request_' value in the call stack in the bug report
with this finding.

Powered by Google App Engine
This is Rietveld 408576698