Closed
Bug 699147
Opened 14 years ago
Closed 14 years ago
Simplify length list parsing
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: longsonr, Assigned: longsonr)
Details
Attachments
(1 file)
|
2.23 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
Avoid changing from utf16 to utf8 and back again.
| Assignee | ||
Updated•14 years ago
|
Attachment #571374 -
Attachment is patch: true
Attachment #571374 -
Flags: review?(jwatt)
Comment 1•14 years ago
|
||
Comment on attachment 571374 [details] [diff] [review]
patch
Change this line:
>+ temp.AppendItem(length);
to:
>- if (!temp.AppendItem(length)) {
>- return NS_ERROR_OUT_OF_MEMORY;
>- }
since AppendItem is allocation fallible, and r=jwatt.
Attachment #571374 -
Flags: review?(jwatt) → review+
| Assignee | ||
Comment 2•14 years ago
|
||
I'll change the SVGNumberList parsing to return NS_ERROR_OUT_OF_MEMORY for appendItem then.
Comment 3•14 years ago
|
||
perfect, thanks!
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → longsonr
| Assignee | ||
Comment 4•14 years ago
|
||
Flags: in-testsuite-
Target Milestone: --- → mozilla11
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•