Closed Bug 336479 Opened 19 years ago Closed 19 years ago

oomish crash [@ cryptojs_GetScriptPrincipal] because of a missing *

Categories

(Core Graveyard :: Security: UI, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Keywords: coverity, crash, fixed1.8.1)

Crash Data

Attachments

(1 file, 1 obsolete file)

I think this is probably an unreachable case, in which case the code should be optimized not to null check after it would crash.
I assume the code meant to do: if (!*result) { instead of what it does. In any case, we should make that change.
Flags: blocking1.9a2?
Summary: crash or hopefully deadcode [@ cryptojs_GetScriptPrincipal] → oomish crash [@ cryptojs_GetScriptPrincipal] because of a missing *
Attached patch not quite what bz said (obsolete) — Splinter Review
Assignee: kengert → timeless
Status: NEW → ASSIGNED
Attachment #221178 - Flags: superreview?(bzbarsky)
Attachment #221178 - Flags: review?(kengert)
Comment on attachment 221178 [details] [diff] [review] not quite what bz said er.. no. Wrong if statement.
Attachment #221178 - Flags: superreview?(bzbarsky) → superreview-
Attachment #221178 - Attachment description: what bz said → not quite what bz said
Attachment #221178 - Attachment is obsolete: true
Attachment #221178 - Flags: review?(kengert)
Attached patch what bz saidSplinter Review
Attachment #221212 - Flags: superreview?(bzbarsky)
Attachment #221212 - Flags: review?(kengert)
Comment on attachment 221212 [details] [diff] [review] what bz said Yeah, better. ;)
Attachment #221212 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 221212 [details] [diff] [review] what bz said Good catch.
Attachment #221212 - Flags: review?(kengert)
Attachment #221212 - Flags: review+
Attachment #221212 - Flags: approval-branch-1.8.1+
landed on trunk by timeless at the same time as he landed on the 1.8 branch. Both branches were closed at the time, though apparently bsmedberg approved the trunk checkin.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
mozilla/security/manager/ssl/src/nsCrypto.cpp 1.65 MOZILLA_1_8_BRANCH: mozilla/security/manager/ssl/src/nsCrypto.cpp 1.55.2.7
Keywords: fixed1.8.1
Flags: blocking1.9a2?
Crash Signature: [@ cryptojs_GetScriptPrincipal]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: