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

Issue 273790043: Bug1213948

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 1286618][CID 1168239] Using uninitialized value ticketData.type when calling SECITEM_CopyItem_Util ssl3_ConsumeHandshakeVariable does not initialise the SECItem's type, which leads to undefined behaviour when copying the item later. To solve this I set the item type to siBuffer.

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M lib/ssl/ssl3con.c View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2
mt
https://codereview.appspot.com/273790043/diff/1/lib/ssl/ssl3con.c File lib/ssl/ssl3con.c (right): https://codereview.appspot.com/273790043/diff/1/lib/ssl/ssl3con.c#newcode4489 lib/ssl/ssl3con.c:4489: i->type = siBuffer; Since line 4477&8 initialize the other ...
8 years, 6 months ago (2015-10-13 18:01:18 UTC) #1
franziskus
8 years, 6 months ago (2015-10-13 19:47:23 UTC) #2
On 2015/10/13 18:01:18, mt wrote:
> https://codereview.appspot.com/273790043/diff/1/lib/ssl/ssl3con.c
> File lib/ssl/ssl3con.c (right):
> 
> https://codereview.appspot.com/273790043/diff/1/lib/ssl/ssl3con.c#newcode4489
> lib/ssl/ssl3con.c:4489: i->type = siBuffer;
> Since line 4477&8 initialize the other values, I think that you should instead
> move this line to there.

makes sense, done
Sign in to reply to this message.

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