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; |