Closed
Bug 338022
Opened 19 years ago
Closed 19 years ago
Dead code in buildASN1ObjectFromDER (security/manager/ssl/src/nsNSSASN1Object.cpp)
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: kherron+mozilla, Assigned: sciguyryan)
References
(Blocks 1 open bug, )
Details
(Keywords: coverity, Whiteboard: [kerh-cuz])
Attachments
(1 file)
1.03 KB,
patch
|
darin.moz
:
review+
KaiE
:
superreview+
|
Details | Diff | Splinter Review |
This is coverity CID 146. Please see the sample URL. The tests at lines 151 and 155 will never succeed, because line 134 will return if |parent| is NULL.
Updated•19 years ago
|
Assignee: kengert → nobody
Whiteboard: [kerh-cuz]
Assignee | ||
Comment 1•19 years ago
|
||
First try at a patch, remove dead code.
Assignee: nobody → sciguyryan+bugzilla
Status: NEW → ASSIGNED
Attachment #239701 -
Flags: superreview?(kaie)
Attachment #239701 -
Flags: review?(darin)
Comment 2•19 years ago
|
||
Comment on attachment 239701 [details] [diff] [review]
Patch v1
It would have been good to use -u20 to include a bit more context, so the patch would clearly show the previous check.
Further up in this function we have:
NS_ENSURE_ARG_POINTER(parent);
And "parent" is not being changed afterwards, so I agree with the patch.
r=kengert
Attachment #239701 -
Flags: superreview?(kaie) → superreview+
Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
> (From update of attachment 239701 [details] [diff] [review] [edit])
> It would have been good to use -u20 to include a bit more context, so the patch
> would clearly show the previous check.
I can provide a patch with -u20 as a param if that would be useful.
Updated•19 years ago
|
Attachment #239701 -
Flags: review?(darin) → review+
Assignee | ||
Updated•19 years ago
|
Whiteboard: [kerh-cuz] → [kerh-cuz] [checkin needed]
Comment 4•19 years ago
|
||
mozilla/security/manager/ssl/src/nsNSSASN1Object.cpp 1.13
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [kerh-cuz] [checkin needed] → [kerh-cuz]
Target Milestone: --- → mozilla1.9alpha
Updated•7 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•