Closed
Bug 1220682
Opened 8 years ago
Closed 8 years ago
Error handling in nsAutoJSString::init (the single-arg version) is busted
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: bzbarsky, Unassigned)
References
Details
Attachments
(1 file)
844 bytes,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
It does: 332 return init(nsContentUtils::RootingCxForThread(), v); but the two-arg init() can throw OOM exceptions as far as I can tell, and this code will leave those dangling.
Flags: needinfo?(huseby)
Flags: needinfo?(bobbyholley)
![]() |
Reporter | |
Updated•8 years ago
|
Component: Build Config → DOM
Comment 1•8 years ago
|
||
Attachment #8682584 -
Flags: review?(bzbarsky)
![]() |
Reporter | |
Comment 2•8 years ago
|
||
Comment on attachment 8682584 [details] [diff] [review] Clear exceptions on single-arg init. v1 r=me
Attachment #8682584 -
Flags: review?(bzbarsky) → review+
Comment 4•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/21c99c452631
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 5•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-b2g44_v2_5/rev/21c99c452631
status-b2g-v2.5:
--- → fixed
Updated•8 years ago
|
Flags: needinfo?(huseby)
Flags: needinfo?(bobbyholley)
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•