Closed Bug 337098 Opened 19 years ago Closed 19 years ago

Coverity crash [@ PK11_FreeSymKey - pk11_KeyExchange] confused logic

Categories

(NSS :: Libraries, defect, P2)

3.11
All
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.11.2

People

(Reporter: timeless, Assigned: nelson)

References

()

Details

(Keywords: coverity, crash, Whiteboard: CID 320)

Crash Data

Attachments

(1 file)

Event var_compare_op: Added "tekTarget" due to comparison "tekTarget == 0" Event var_deref_model: Variable "tekTarget" tracked as NULL was passed to a function that dereferences it. [model] Also see events: [var_deref_model] At conditional (1): "tekTarget == 0" taking true path 228 if (tekTarget == NULL) PK11_FreeSymKey(tekTarget); Afaik the code should be using != or just (tekTarget) et al.
Hardware: PC → All
Target Milestone: --- → 3.11.2
Priority: -- → P2
The URL given in the original bug report was for the wrong file. The code in question is old FORTEZZA code. The entire error path is bogus. But rather than fixing it, the entire block of FORTEZZA KEA code in this file should be eliminated.
taking
Assignee: nobody → nelson
Bob, does this seem right to you? Is there any other change in softoken that must be made to accompany this?
Attachment #222468 - Flags: review?(rrelyea)
Adding requetsed reviewer to cc list.
Attachment #222468 - Flags: review?(wtchang)
Comment on attachment 222468 [details] [diff] [review] remove KEA support from pk11_KeyExchange r=wtc. Alternately, change all the == NULL tests in the error path to != NULL tests. I agree it's better to remove KEA support.
Attachment #222468 - Flags: review?(wtchang) → review+
Comment on attachment 222468 [details] [diff] [review] remove KEA support from pk11_KeyExchange Removing KEA is the right way to go. We've already removed much of the fortezza code. This is basically dead code now, so removing it should be ok.
Attachment #222468 - Flags: review?(rrelyea) → review+
Thanks for the reviews. Checking in pk11wrap/pk11kea.c; new revision: 1.11; previous revision: 1.10 Checking in pk11wrap/pk11kea.c; new revision: 1.9.28.1; previous revision: 1.9
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
CID 320
Whiteboard: CID 320
Summary: crash [@ PK11_FreeSymKey - pk11_KeyExchange] confused logic → Coverity crash [@ PK11_FreeSymKey - pk11_KeyExchange] confused logic
Crash Signature: [@ PK11_FreeSymKey - pk11_KeyExchange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: