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)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
|
922 bytes,
patch
|
hsivonen
:
review+
hsivonen
:
feedback+
|
Details | Diff | Splinter Review |
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 (?).
| Assignee | ||
Comment 1•10 years ago
|
||
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)
Updated•10 years ago
|
Attachment #8710510 -
Flags: feedback?(hsivonen) → feedback+
| Assignee | ||
Comment 2•10 years ago
|
||
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 | ||
Updated•10 years ago
|
Assignee: nobody → nfroyd
Updated•10 years ago
|
Attachment #8710510 -
Flags: review?(hsivonen) → review+
Comment 4•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 5•10 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•