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

Issue 1746363002: Fixes error handling, leaks in secure sockets. (Closed)

Created:
4 years, 9 months ago by zra
Modified:
4 years, 9 months ago
Reviewers:
Bill Hesse, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fixes error handling, leaks in secure sockets. - Peer certificate was leaked, cert passed to bad cert callback could could become stale. - Added finalizer. - Failing to call Destroy would leak various things. - Added finalizer. - ThrowIfError in initialization would fail to deallocate various things on an error. - Replaced with explicit checks, and deallocation where needed. R=iposva@google.com, whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/a28bfa98796cfc31676211f474b1c6e0ee68f776

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Added comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -55 lines) Patch
M runtime/bin/secure_socket.h View 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 16 chunks +187 lines, -53 lines 1 comment Download

Messages

Total messages: 11 (2 generated)
zra
4 years, 9 months ago (2016-02-29 23:51:38 UTC) #2
Bill Hesse
https://codereview.chromium.org/1746363002/diff/1/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1746363002/diff/1/runtime/bin/secure_socket.cc#newcode32 runtime/bin/secure_socket.cc:32: // Return the error from the containing function if ...
4 years, 9 months ago (2016-03-01 17:02:18 UTC) #3
zra
https://codereview.chromium.org/1746363002/diff/1/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1746363002/diff/1/runtime/bin/secure_socket.cc#newcode32 runtime/bin/secure_socket.cc:32: // Return the error from the containing function if ...
4 years, 9 months ago (2016-03-01 21:19:02 UTC) #4
zra
@iposva Did you have any comments?
4 years, 9 months ago (2016-03-01 23:53:46 UTC) #5
Bill Hesse
lgtm
4 years, 9 months ago (2016-03-02 02:34:54 UTC) #6
Ivan Posva
LGTM with 1 comment/question. -ivan https://codereview.chromium.org/1746363002/diff/40001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1746363002/diff/40001/runtime/bin/secure_socket.cc#newcode256 runtime/bin/secure_socket.cc:256: SSLFilter* filter = GetFilter(args); ...
4 years, 9 months ago (2016-03-02 04:52:52 UTC) #7
zra
https://codereview.chromium.org/1746363002/diff/40001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1746363002/diff/40001/runtime/bin/secure_socket.cc#newcode256 runtime/bin/secure_socket.cc:256: SSLFilter* filter = GetFilter(args); On 2016/03/02 04:52:52, Ivan Posva ...
4 years, 9 months ago (2016-03-02 06:12:07 UTC) #8
zra
Committed patchset #4 (id:60001) manually as a28bfa98796cfc31676211f474b1c6e0ee68f776 (presubmit successful).
4 years, 9 months ago (2016-03-02 06:12:24 UTC) #10
Ivan Posva
4 years, 9 months ago (2016-03-02 06:17:22 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1746363002/diff/60001/runtime/bin/secure_sock...
File runtime/bin/secure_socket.cc (right):

https://codereview.chromium.org/1746363002/diff/60001/runtime/bin/secure_sock...
runtime/bin/secure_socket.cc:262: // called more than once.
Thanks!

Powered by Google App Engine
This is Rietveld 408576698