Closed Bug 529749 Opened 15 years ago Closed 15 years ago

Ensure that rulewalkers never have a null rulenode

Categories

(Core :: CSS Parsing and Computation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file, 1 obsolete file)

Basically makes Transition() return |this| instead of null on OOM. That ensures that rulewalkers never have a null mCurrent.
Attached patch Fix (obsolete) — Splinter Review
Attachment #413276 - Flags: review?(dbaron)
Depends on: 523148
Attachment #413276 - Attachment is obsolete: true
Attachment #413277 - Flags: review?(dbaron)
Attachment #413276 - Flags: review?(dbaron)
Comment on attachment 413277 [details] [diff] [review] With one more callsite fixed Could you make the sites in nsRuleNode::Transition that return early on out-of-memory have NS_WARNING("out of memory") so that we'll notice if somebody changes code such that we hit one by accident? r=dbaron
Attachment #413277 - Flags: review?(dbaron) → review+
> NS_WARNING("out of memory") Done.
Blocks: 529750
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: