Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: Source/WebCore/svg/SVGParserUtilities.cpp

Issue 8440026: Merge 98344 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/path-arc-invalid-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/SVGParserUtilities.cpp
===================================================================
--- Source/WebCore/svg/SVGParserUtilities.cpp (revision 99024)
+++ Source/WebCore/svg/SVGParserUtilities.cpp (working copy)
@@ -158,6 +158,8 @@
// and might not have any whitespace/comma after it
bool parseArcFlag(const UChar*& ptr, const UChar* end, bool& flag)
{
+ if (ptr >= end)
+ return false;
const UChar flagChar = *ptr++;
if (flagChar == '0')
flag = false;
« no previous file with comments | « LayoutTests/svg/path-arc-invalid-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698