<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>5239</bug_id>
          
          <creation_ts>2005-10-02 19:58:20 -0700</creation_ts>
          <short_desc>Viewing a particular SVG image causes Safari+SVG to stop responding.</short_desc>
          <delta_ts>2005-10-03 01:52:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://upload.wikimedia.org/wikipedia/en/0/01/Eye.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tobin Richard">tjrichard</reporter>
          <assigned_to name="Eric Seidel (no email)">eric</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21203</commentid>
    <comment_count>0</comment_count>
    <who name="Tobin Richard">tjrichard</who>
    <bug_when>2005-10-02 19:58:20 -0700</bug_when>
    <thetext>Attempting to open http://upload.wikimedia.org/wikipedia/en/0/01/Eye.svg (linked
to from http://en.wikipedia.org/wiki/Image:Eye.svg) causes Safari+SVG (latest
build from 2005-09-03) to stop responding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21233</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-10-02 23:34:46 -0700</bug_when>
    <thetext>Wow, thanks for the bug!

It looks like
SVGPathParser::parseSVG( const QString &amp;s, bool process )

is just not robust enough.  This particular SVG has a non-ascii character right in the middle of a pata data 
attribute string, and it&apos;s causing parseSVG to just loop forever.  I&apos;ll talk this one out with the KSVG2 guys 
and see if we can&apos;t come up with a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21243</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-10-03 00:26:58 -0700</bug_when>
    <thetext>(In reply to comment #0) 
&gt; Attempting to open http://upload.wikimedia.org/wikipedia/en/0/01/Eye.svg 
(linked 
&gt; to from http://en.wikipedia.org/wiki/Image:Eye.svg) causes Safari+SVG (latest 
&gt; build from 2005-09-03) to stop responding. 
 
Good catch! I&apos;ll attach a patch that seems to work. I am checking whether 
just skipping the invalid char is according to svg... 
Cheers, 
 
Rob. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21244</commentid>
    <comment_count>3</comment_count>
      <attachid>4169</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-10-03 00:28:25 -0700</bug_when>
    <thetext>Created attachment 4169
Stop da loop</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21252</commentid>
    <comment_count>4</comment_count>
      <attachid>4174</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-10-03 01:08:56 -0700</bug_when>
    <thetext>Created attachment 4174
stop da loop II</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21254</commentid>
    <comment_count>5</comment_count>
      <attachid>4174</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-10-03 01:10:53 -0700</bug_when>
    <thetext>Comment on attachment 4174
stop da loop II

Looks fine. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21255</commentid>
    <comment_count>6</comment_count>
      <attachid>4175</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2005-10-03 01:24:46 -0700</bug_when>
    <thetext>Created attachment 4175
More informative error reporting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21259</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2005-10-03 01:52:45 -0700</bug_when>
    <thetext>Thanks for the great bug!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4169</attachid>
            <date>2005-10-03 00:28:25 -0700</date>
            <delta_ts>2005-10-03 00:28:25 -0700</delta_ts>
            <desc>Stop da loop</desc>
            <filename>path-loop.diff</filename>
            <type>text/plain</type>
            <size>514</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IHN2Zy9zdmdwYXRocGFyc2VyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzdmcvc3ZncGF0aHBh
cnNlci5jcHAJKHJldmlzaW9uIDQ2NjQ5OSkKKysrIHN2Zy9zdmdwYXRocGFyc2VyLmNwcAkod29y
a2luZyBjb3B5KQpAQCAtMzg5LDYgKzM4OSwxMSBAQAogICAgICAgICAgICAgICAgICAgICBlbHNl
CiAgICAgICAgICAgICAgICAgICAgICAgICBzdmdBcmNUbyggdG94LCB0b3ksIHJ4LCByeSwgYW5n
bGUsIGxhcmdlQXJjLCBzd2VlcCwgIXJlbGF0aXZlICk7CiAgICAgICAgICAgICAgICAgfQorICAg
ICAgICAgICAgICAgIGRlZmF1bHQ6CisgICAgICAgICAgICAgICAgeworICAgICAgICAgICAgICAg
ICAgICBwdHIrKzsKKyAgICAgICAgICAgICAgICAgICAgY29udGludWU7CisgICAgICAgICAgICAg
ICAgfQogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBsYXN0Q29tbWFuZCA9IGNvbW1hbmQ7
Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4174</attachid>
            <date>2005-10-03 01:08:56 -0700</date>
            <delta_ts>2005-10-03 01:10:53 -0700</delta_ts>
            <desc>stop da loop II</desc>
            <filename>path-loop.diff</filename>
            <type>text/plain</type>
            <size>583</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IHN2Zy9zdmdwYXRocGFyc2VyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzdmcvc3ZncGF0aHBh
cnNlci5jcHAJKHJldmlzaW9uIDQ2NjQ5OSkKKysrIHN2Zy9zdmdwYXRocGFyc2VyLmNwcAkod29y
a2luZyBjb3B5KQpAQCAtMzg5LDYgKzM4OSwxMSBAQAogICAgICAgICAgICAgICAgICAgICBlbHNl
CiAgICAgICAgICAgICAgICAgICAgICAgICBzdmdBcmNUbyggdG94LCB0b3ksIHJ4LCByeSwgYW5n
bGUsIGxhcmdlQXJjLCBzd2VlcCwgIXJlbGF0aXZlICk7CiAgICAgICAgICAgICAgICAgfQorICAg
ICAgICAgICAgICAgIGRlZmF1bHQ6CisgICAgICAgICAgICAgICAgeworICAgICAgICAgICAgICAg
ICAgICBmcHJpbnRmKHN0ZGVyciwgIkVSUk9SOiBVbmtub3duIHBhdGggY29tbWFuZDogJWMgKGE6
ICVkKSIsIGNvbW1hbmQsIGNvbW1hbmQpOworICAgICAgICAgICAgICAgICAgICByZXR1cm47Cisg
ICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBsYXN0Q29tbWFu
ZCA9IGNvbW1hbmQ7Cg==
</data>
<flag name="review"
          id="671"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4175</attachid>
            <date>2005-10-03 01:24:46 -0700</date>
            <delta_ts>2005-10-03 01:24:46 -0700</delta_ts>
            <desc>More informative error reporting</desc>
            <filename>path-loop.diff</filename>
            <type>text/plain</type>
            <size>704</size>
            <attacher name="Rob Buis">rwlbuis</attacher>
            
              <data encoding="base64">SW5kZXg6IHN2Zy9zdmdwYXRocGFyc2VyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBzdmcvc3ZncGF0aHBh
cnNlci5jcHAJKHJldmlzaW9uIDQ2NjQ5OSkKKysrIHN2Zy9zdmdwYXRocGFyc2VyLmNwcAkod29y
a2luZyBjb3B5KQpAQCAtMzg5LDYgKzM4OSwxMiBAQAogICAgICAgICAgICAgICAgICAgICBlbHNl
CiAgICAgICAgICAgICAgICAgICAgICAgICBzdmdBcmNUbyggdG94LCB0b3ksIHJ4LCByeSwgYW5n
bGUsIGxhcmdlQXJjLCBzd2VlcCwgIXJlbGF0aXZlICk7CiAgICAgICAgICAgICAgICAgfQorICAg
ICAgICAgICAgICAgIGRlZmF1bHQ6CisgICAgICAgICAgICAgICAgeworICAgICAgICAgICAgICAg
ICAgICBmcHJpbnRmKHN0ZGVyciwgIkVSUk9SOiBVbmtub3duIHBhdGggY29tbWFuZDogJWMgKGE6
ICVkKVxuIiwgY29tbWFuZCwgY29tbWFuZCk7CisgICAgICAgICAgICAgICAgICAgIGZwcmludGYo
c3RkZXJyLCAiRVJST1I6IFBhdGggRGF0YSBwYXJzaW5nIHN0b3BwZWQgYXQgY2hhcmFjdGVyIHBv
c2l0aW9uICVkXG4iLCBwdHIgLSBkLmxhdGluMSgpKTsKKyAgICAgICAgICAgICAgICAgICAgcmV0
dXJuOworICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgbGFz
dENvbW1hbmQgPSBjb21tYW5kOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>