Closed Bug 275075 Opened 21 years ago Closed 21 years ago

two-arg form of do_GetServiceFromCategory always crashes

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: shaver, Assigned: shaver)

Details

(Keywords: crash)

Attachments

(1 file)

We unconditionally dereference mErrorPtr, but it defaults to 0. Obvious patch coming up.
Attachment #168977 - Flags: superreview?(darin)
Attachment #168977 - Flags: review?(bsmedberg)
Attachment #168977 - Flags: review?(bsmedberg) → review+
Comment on attachment 168977 [details] [diff] [review] Check mErrorPtr before deref sr=darin hmm... looks like the declaration of do_GetServiceFromCategory in nsServiceManagerUtils.h should be #ifndef MOZILLA_STRICT_API as well :(
Attachment #168977 - Flags: superreview?(darin) → superreview+
or that declaration should be moved into some other header file.
Thanks for reviews, fix committed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Severity: normal → critical
Keywords: crash
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: