Closed Bug 378127 Opened 17 years ago Closed 17 years ago

ensure OOM checks after PL_DHashTableInit

Categories

(Core :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 211260

People

(Reporter: sayrer, Assigned: sayrer)

Details

Attachments

(1 file, 1 obsolete file)

PL_DHashTableOperate shows up in a lot of stacks on crash-reports.mozilla.com.

At the very least, this patch prevents a known crasher in nsCSSRuleProcessor under OOM conditions (though the OOM crash just pops up elsewhere for that particular case).
Attachment #269272 - Flags: superreview?
Attachment #269272 - Flags: review?(dbaron)
Attachment #269272 - Flags: superreview? → superreview?(cbiesinger)
oops, attached the wrong patch before
Attachment #269272 - Attachment is obsolete: true
Attachment #269274 - Flags: superreview?
Attachment #269274 - Flags: review?(dbaron)
Attachment #269272 - Flags: superreview?(cbiesinger)
Attachment #269272 - Flags: review?(dbaron)
Attachment #269274 - Flags: superreview? → superreview?(cbiesinger)
I think these need to be separate review requests for separate areas of code -- what the correct error handling is in each case requires understanding what the code does.  We're better off crashing than violating invariants in ways that could lead to exploitable security bugs.
Comment on attachment 269274 [details] [diff] [review]
null out ops if Init fails, and check it before using v2

ok
Attachment #269274 - Flags: superreview?(cbiesinger)
Attachment #269274 - Flags: review?(dbaron)
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: