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

Issue 266430043: Bug1026688

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 6 months ago by franziskus
Modified:
8 years, 6 months ago
Reviewers:
ekr, mt
Visibility:
Public.

Description

[CID 1202865][CID 1202869] Possible leak of |ciphercx| in sec_PKCS7CreateEncryptObject and NSS_CMSCipherContext_StartEncrypt on failure

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M lib/pkcs7/p7local.c View 1 1 chunk +2 lines, -1 line 0 comments Download
M lib/smime/cmscipher.c View 1 2 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 4
mt
https://codereview.appspot.com/266430043/diff/1/lib/pkcs7/p7local.c File lib/pkcs7/p7local.c (right): https://codereview.appspot.com/266430043/diff/1/lib/pkcs7/p7local.c#newcode207 lib/pkcs7/p7local.c:207: sec_PKCS7DestroyEncryptObject(ciphercx); PK11_DestroyContext() ?? https://codereview.appspot.com/266430043/diff/1/lib/smime/cmscipher.c File lib/smime/cmscipher.c (right): https://codereview.appspot.com/266430043/diff/1/lib/smime/cmscipher.c#newcode184 lib/smime/cmscipher.c:184: ...
8 years, 6 months ago (2015-10-13 17:53:17 UTC) #1
franziskus
On 2015/10/13 17:53:17, mt wrote: > https://codereview.appspot.com/266430043/diff/1/lib/pkcs7/p7local.c > File lib/pkcs7/p7local.c (right): > > https://codereview.appspot.com/266430043/diff/1/lib/pkcs7/p7local.c#newcode207 > ...
8 years, 6 months ago (2015-10-13 19:31:45 UTC) #2
mt
Maybe the change to the loser section was a bad choice. This has a real ...
8 years, 6 months ago (2015-10-14 21:02:19 UTC) #3
franziskus
8 years, 6 months ago (2015-10-15 23:25:34 UTC) #4
On 2015/10/14 21:02:19, mt wrote:
> Maybe the change to the loser section was a bad choice.  This has a real bug
> now.
> 
> https://codereview.appspot.com/266430043/diff/20001/lib/smime/cmscipher.c
> File lib/smime/cmscipher.c (right):
> 
>
https://codereview.appspot.com/266430043/diff/20001/lib/smime/cmscipher.c#new...
> lib/smime/cmscipher.c:198: }
> This will free the cipher context even if thins succeed, which isn't what you
> want.  You could set ciphercx to NULL after line 188.

uh, right, somehow missed that.
Sign in to reply to this message.

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