Closed Bug 1241522 Opened 10 years ago Closed 10 years ago

crash in OOM | large | NS_ABORT_OOM | Driver_HandleCharacterData

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is report bp-ef315cba-e55d-405e-9bea-3d1282160120. ============================================================= I ran into this earlier in the week, and I can see ~200 crashes or so in the last week. The stack here is a little botched; I believe the real call responsible is: http://hg.mozilla.org/releases/mozilla-release/annotate/146f494b6a79/parser/htmlparser/nsExpatDriver.cpp#l416 where we are doing an infallible append to mCDataText. We ought to be doing a fallible allocation here, which I think should Just Work, since everything above this point should be setup to handle failure of the appending (?).
This seems like the obvious way to handle OOM at this point, but as it's very different from anything else in the parser, I wonder if I'm missing anything...
Attachment #8710510 - Flags: feedback?(hsivonen)
Attachment #8710510 - Flags: feedback?(hsivonen) → feedback+
Comment on attachment 8710510 [details] [diff] [review] handle OOM in nsExpatDriver::HandleCharacterData I guess I could interpret the f+ as an r+ on the unchanged patch, but just to formalize it...
Attachment #8710510 - Flags: review?(hsivonen)
Assignee: nobody → nfroyd
Attachment #8710510 - Flags: review?(hsivonen) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: