Closed Bug 287504 Opened 20 years ago Closed 20 years ago

null pointer dereference [@ nsCSSCompressedDataBlock::MapRuleInfoInto]

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Keywords: crash, topcrash, Whiteboard: [patch])

Crash Data

Attachments

(1 file)

There are null pointer dereferences showing up in talkback as nsCSSCompressedDataBlock::MapRuleInfoInto where the problem is that the nsCSSCompressedDataBlock in question is null, and it's called from CSSImportantRule::MapRuleInfoInto. This bug covers ONLY THOSE CRASHES. I've been thinking about why this could happen. The only possibility I've found so far is that on some out-of-memory cases we'll leave a changed style rule present even though they're supposed to be immutable. In these cases, it might still have an important rule even though it's no longer supposed to.
Status: NEW → ASSIGNED
Keywords: topcrash
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
This also has a little cleanup of GetImportantRule, such that it would also fix the crash if there were a logic problem that would cause the assertion that I added to fire.
Attachment #178447 - Flags: superreview?(bzbarsky)
Attachment #178447 - Flags: review?(bzbarsky)
Severity: normal → critical
Keywords: crash
Comment on attachment 178447 [details] [diff] [review] null check for potential OOM crasher r+sr=bzbarsky
Attachment #178447 - Flags: superreview?(bzbarsky)
Attachment #178447 - Flags: superreview+
Attachment #178447 - Flags: review?(bzbarsky)
Attachment #178447 - Flags: review+
Checked in 2005-03-24 20:09 -0800. Optimistically marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Crash Signature: [@ nsCSSCompressedDataBlock::MapRuleInfoInto]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: