Closed Bug 336993 Opened 18 years ago Closed 14 years ago

crash [@ main] "path" Pointer dereferenced before NULL check

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 387450

People

(Reporter: timeless, Assigned: timeless)

References

()

Details

(Keywords: coverity, crash)

Crash Data

Attachments

(1 file)

There's also an oom crash floating around here, but most importantly the rv from ParseURL wasn't checked, so path wasn't ensured, once it's checked, the later null check on path is useless.
Attached patch deal w/ oomSplinter Review
Assignee: xpi-engine → timeless
Status: NEW → ASSIGNED
Attachment #221199 - Flags: superreview?(dveditz)
Attachment #221199 - Flags: review?(dveditz)
Comment on attachment 221199 [details] [diff] [review]
deal w/ oom

>+            if (NS_FAILED(rv))

Don't use NS_FAILED -- these are a different set of enum status values, not nsresults. Should be 
              if (rv != nsHTTPConn::OK);
In case someone later adds a positive failure code. ditto later.
Attachment #221199 - Flags: superreview?(dveditz)
Attachment #221199 - Flags: review?(dveditz)
Attachment #221199 - Flags: review-
QA Contact: xpi-engine
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Crash Signature: [@ main]
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: