Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(52)

Issue 269030043: Bug 1209152 - Fix possible PLArena leak in ssl3_HandleECDHServerKeyExchange (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by ttaubert
Modified:
10 years, 11 months ago
Reviewers:
mt, ekr, wtc, wtc1, ekr-rietveld
Visibility:
Public.

Description

Bug 1209152 - Fix possible PLArena leak in ssl3_HandleECDHServerKeyExchange

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M lib/ssl/ssl3ecc.c View 3 chunks +7 lines, -2 lines 4 comments Download

Messages

Total messages: 7
ekr-rietveld
https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c File lib/ssl/ssl3ecc.c (right): https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c#newcode710 lib/ssl/ssl3ecc.c:710: } peerKey->arena points to arena and SECKEY_DestroyPublicKey() destroys the ...
10 years, 11 months ago (2015-09-29 14:57:27 UTC) #1
ekr-rietveld
Note also the comparable code in the non-ECC DH branch.
10 years, 11 months ago (2015-09-29 15:09:03 UTC) #2
wtc1
https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c File lib/ssl/ssl3ecc.c (right): https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c#newcode721 lib/ssl/ssl3ecc.c:721: errCode = SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE; If we follow Eric's minimal change ...
10 years, 11 months ago (2015-09-29 18:34:45 UTC) #3
ekr-rietveld
https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c File lib/ssl/ssl3ecc.c (right): https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c#newcode721 lib/ssl/ssl3ecc.c:721: errCode = SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE; On 2015/09/29 18:34:45, wtc1 wrote: > ...
10 years, 11 months ago (2015-09-29 18:37:55 UTC) #4
wtc1
https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c File lib/ssl/ssl3ecc.c (right): https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c#newcode721 lib/ssl/ssl3ecc.c:721: errCode = SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE; On 2015/09/29 18:37:55, ekr-webrtc wrote: > ...
10 years, 11 months ago (2015-09-29 20:20:11 UTC) #5
ekr-rietveld
On 2015/09/29 20:20:11, wtc1 wrote: > https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c > File lib/ssl/ssl3ecc.c (right): > > https://codereview.appspot.com/269030043/diff/1/lib/ssl/ssl3ecc.c#newcode721 > ...
10 years, 11 months ago (2015-09-29 20:26:01 UTC) #6
ttaubert
10 years, 11 months ago (2015-09-30 13:22:23 UTC) #7
On 2015/09/29 20:26:01, ekr-webrtc wrote:
> On 2015/09/29 20:20:11, wtc1 wrote:
> > I think it's better to assign ss.sec.peerKey only when we have constructed
> > |peerKey| completely.
> 
> I agree that this would be the best practice. Tim, can you produce a patch
that
> does this as well as for the FF DHE version?

Yes, will do.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b