As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
Last Comment Bug 699147 - Simplify length list parsing
: Simplify length list parsing
Product: Core
Classification: Components
Component: SVG (show other bugs)
: Trunk
: x86_64 Windows 7
: -- normal (vote)
: mozilla11
Assigned To: Robert Longson
: Jet Villegas (:jet)
Depends on:
  Show dependency treegraph
Reported: 2011-11-02 10:51 PDT by Robert Longson
Modified: 2011-11-10 03:08 PST (History)
2 users (show)
longsonr: in‑testsuite-
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (2.23 KB, patch)
2011-11-02 10:51 PDT, Robert Longson
jwatt: review+
Details | Diff | Splinter Review

Description User image Robert Longson 2011-11-02 10:51:57 PDT
Created attachment 571374 [details] [diff] [review]

Avoid changing from utf16 to utf8 and back again.
Comment 1 User image Jonathan Watt [:jwatt] 2011-11-08 03:54:25 PST
Comment on attachment 571374 [details] [diff] [review]

Change this line:

>+    temp.AppendItem(length);


>-    if (!temp.AppendItem(length)) {
>-      return NS_ERROR_OUT_OF_MEMORY;
>-    }

since AppendItem is allocation fallible, and r=jwatt.
Comment 2 User image Robert Longson 2011-11-08 06:06:17 PST
I'll change the SVGNumberList parsing to return NS_ERROR_OUT_OF_MEMORY for appendItem then.
Comment 3 User image Jonathan Watt [:jwatt] 2011-11-08 06:15:45 PST
perfect, thanks!
Comment 5 User image Marco Bonardo [::mak] 2011-11-10 03:08:41 PST

Note You need to log in before you can comment on or make changes to this bug.