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

Issue 2206233003: Fix memory leaks in BoringSSL secure socket implementation (Closed)

Created:
4 years, 4 months ago by zra
Modified:
4 years, 4 months ago
Reviewers:
Bill Hesse, siva
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

Fix memory leaks in BoringSSL secure socket implementation After running our tests with ASAN and inspecting the BoringSSL code, it appears that the calls indicated in the CL increment the reference count of the objects passed in being added to the security context. Therefore, to avoid a leak, we have to free() the objects to decrement the reference count so that the memory is freed when the context is destroyed. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/8808f853e37b72acbb2a705bb013ecbd6fbb8582

Patch Set 1 #

Patch Set 2 : Fix another leak #

Total comments: 2

Patch Set 3 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -48 lines) Patch
M runtime/bin/secure_socket_boringssl.h View 1 1 chunk +32 lines, -1 line 0 comments Download
M runtime/bin/secure_socket_boringssl.cc View 1 2 24 chunks +66 lines, -47 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
zra
4 years, 4 months ago (2016-08-03 22:44:56 UTC) #3
siva
It is weird that the documentation of these calls does not specify clearly when the ...
4 years, 4 months ago (2016-08-04 17:25:03 UTC) #4
zra
https://codereview.chromium.org/2206233003/diff/20001/runtime/bin/secure_socket_boringssl.cc File runtime/bin/secure_socket_boringssl.cc (right): https://codereview.chromium.org/2206233003/diff/20001/runtime/bin/secure_socket_boringssl.cc#newcode955 runtime/bin/secure_socket_boringssl.cc:955: X509_free(cert); On 2016/08/04 17:25:03, siva wrote: > Can you ...
4 years, 4 months ago (2016-08-04 17:49:34 UTC) #5
zra
4 years, 4 months ago (2016-08-04 17:49:55 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
8808f853e37b72acbb2a705bb013ecbd6fbb8582 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698