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)

defect
Not set
minor

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)

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.
Assignee: kengert → nobody
Whiteboard: [kerh-cuz]
Attached patch Patch v1Splinter Review
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 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+
(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.
Attachment #239701 - Flags: review?(darin) → review+
Whiteboard: [kerh-cuz] → [kerh-cuz] [checkin needed]
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: