[Webkit-unassigned] [Bug 67310] XSLTProcessor fails on a large XML document, hitting maxdepth limit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 1 11:25:13 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67310


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|XSLTProcessor               |XSLTProcessor fails on a
                   |transformToDocument()       |large XML document, hitting
                   |returns undefined with      |maxdepth limit
                   |large XML document.         |
             Status|UNCONFIRMED                 |NEW
                 CC|                            |mrowe at apple.com
     Ever Confirmed|0                           |1




--- Comment #7 from Alexey Proskuryakov <ap at webkit.org>  2011-09-01 11:25:13 PST ---
Just to confirm, is this transformation expected to work correctly without any parameters set?

I can reproduce a problem with the new xsl file (filter.xsl). Firefox quickly produces a document, while WebKit takes much longer, and shows "undefined".

I can also reproduce this error with command line libxslt utility on Mac OS X:

$ xsltproc filter.xsl data.xml
runtime error: file /Users/ap/.Trash/large-xsl/filter.xsl line 120 element param
xsltApplyXSLTTemplate: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).

This doesn't occur if I set maxdepth to 6000. Not sure if we should increase it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list