Closed Bug 278546 Opened 20 years ago Closed 20 years ago

Potential unchecked null pointer crash in nsPresShell::GetViewToScroll

Categories

(Core :: Layout, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

References

()

Details

(Keywords: crash)

Attachments

(1 file)

You can't call svp->GetScrollableView()->View() because GetScrollableView can
return null. I am unable to consistently reproduce the crash, although an
assertion I added while writing a crash fix warns me from time to time.
Attached patch Proposed patchSplinter Review
Assignee: nobody → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Attachment #171379 - Flags: superreview?(bzbarsky)
Attachment #171379 - Flags: review?(bzbarsky)
Comment on attachment 171379 [details] [diff] [review]
Proposed patch

r+sr=bzbarsky, but should nsIScrollableViewProvider ever return null?  If not,
it may be worth adding an assert here and trying to find cases when it
doesn't...
Attachment #171379 - Flags: superreview?(bzbarsky)
Attachment #171379 - Flags: superreview+
Attachment #171379 - Flags: review?(bzbarsky)
Attachment #171379 - Flags: review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Severity: normal → critical
Does this mean bug 262578 can be reclosed now?
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: