Bug 111822

Summary: Infinite loop due to bad use tree cycle detection
Product: WebKit Reporter: Philip Rogers <pdr>
Component: SVGAssignee: Philip Rogers <pdr>
Status: RESOLVED FIXED    
Severity: Normal CC: d-r, fmalita, schenney, webkit.review.bot, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Prevent infinite loop none

Description Philip Rogers 2013-03-07 22:49:07 PST
We can infinite loop during use tree cycle detection with ids containing capital letters.

The bug is conveniently labeled with a fixme!
http://trac.webkit.org/browser/trunk/Source/WebCore/svg/SVGUseElement.cpp?annotate=blame#L672

Testcase:
<svg>
<g id="R">
<use id="test" xlink:href="#R">
</svg>

Original bug: crbug.com/181016
Comment 1 Philip Rogers 2013-03-07 23:22:16 PST
Created attachment 192158 [details]
Prevent infinite loop
Comment 2 Stephen Chenney 2013-03-08 06:34:25 PST
Comment on attachment 192158 [details]
Prevent infinite loop

Look good to me. R=me.
Comment 3 WebKit Review Bot 2013-03-08 06:40:07 PST
Comment on attachment 192158 [details]
Prevent infinite loop

Clearing flags on attachment: 192158

Committed r145216: <http://trac.webkit.org/changeset/145216>
Comment 4 WebKit Review Bot 2013-03-08 06:40:10 PST
All reviewed patches have been landed.  Closing bug.