Closed
Bug 1257389
Opened 9 years ago
Closed 9 years ago
ConvertJSValueToByteString should use fallible allocation
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: khuey, Assigned: khuey)
Details
Attachments
(1 file)
|
762 bytes,
patch
|
bzbarsky
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
I found at least one dump on Socorro that crashed here. There are probably more but stackwalking fails, so I had to grovel around in the minidump to find the return address and pin it on ConvertJSValueToByteString.
Attachment #8731493 -
Flags: review?(bzbarsky)
Comment 1•9 years ago
|
||
Comment on attachment 8731493 [details] [diff] [review]
Patch
Good catch. r=me
Attachment #8731493 -
Flags: review?(bzbarsky) → review+
Comment 3•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
| Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8731493 [details] [diff] [review]
Patch
Simple OOM fix to use fallible allocation on a content-controlled string.
Approval Request Comment
[Feature/regressing bug #]: N/A
[User impact if declined]: Slightly more OOM crashes
[Describe test coverage new/current, TreeHerder]: This code path is well tested, used by many WebIDL bindings
[Risks and why]: low risk
[String/UUID change made/needed]: N/A
Attachment #8731493 -
Flags: approval-mozilla-beta?
Attachment #8731493 -
Flags: approval-mozilla-aurora?
Updated•9 years ago
|
status-firefox46:
--- → affected
status-firefox47:
--- → affected
Comment 5•9 years ago
|
||
Comment on attachment 8731493 [details] [diff] [review]
Patch
Less crashes, taking it
Should be in 46 beta 5
Attachment #8731493 -
Flags: approval-mozilla-beta?
Attachment #8731493 -
Flags: approval-mozilla-beta+
Attachment #8731493 -
Flags: approval-mozilla-aurora?
Attachment #8731493 -
Flags: approval-mozilla-aurora+
Comment 6•9 years ago
|
||
| bugherder uplift | ||
Comment 7•9 years ago
|
||
| bugherder uplift | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•