Closed Bug 562628 Opened 14 years ago Closed 14 years ago

Crash in [@ nsMIMEInfoBase::LaunchWithIProcess] when the process couldn't initialize for some reason

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
mozilla2.0b2

People

(Reporter: glandium, Assigned: glandium)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

While trying to write a testcase for bug 450239, I was initializing a handler with a directory as the application executable (which I got from code copied from test_handlerService.js, but that's not a problem there).

Next, when trying to use this handler, I got a crash in  nsMIMEInfoBase::LaunchWithIProcess. It appears that whenever nsProcess::Init fails, LaunchWithIProcess will do a NULL dereference.

I don't think it's possible to trigger this bug in normal operation, thus the severity.
Attachment #442362 - Attachment is patch: true
Attachment #442362 - Attachment mime type: application/octet-stream → text/plain
Attachment #442362 - Flags: review?(bzbarsky)
Severity: normal → critical
Keywords: crash
Summary: Crash in nsMIMEInfoBase::LaunchWithIProcess when the process couldn't initialize for some reason → Crash in [@ nsMIMEInfoBase::LaunchWithIProcess] when the process couldn't initialize for some reason
Comment on attachment 442362 [details] [diff] [review]
Report nsProcess::Init errors back to nsMIMEInfoBase::InitProcess callers

r=bzbarsky.  I'm sorry for the terrible lag here.

Do you need me to check this in?
Attachment #442362 - Flags: review?(bzbarsky) → review+
> Do you need me to check this in?

If you have other patches to land at the same time, yes, please. Otherwise, I'll take care of it. Thanks.
Assignee: nobody → mh+mozilla
Pushed http://hg.mozilla.org/mozilla-central/rev/29884ff43099
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3b2
Crash Signature: [@ nsMIMEInfoBase::LaunchWithIProcess]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: