Closed
Bug 69478
Opened 24 years ago
Closed 24 years ago
Use of illegal syntax ("||" instead of "or") in Xpath expression eats up the whole memory
Categories
(Core :: XSLT, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: wschmid, Assigned: keith)
References
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID: Standalone XSLT engine, Milestone-18
The following statement in an XSL input file causes the XSLT engine to loop
until all available memory is used and the CPU usage is up to 100%:
<xsl:when test = "@type='image/gif' || @type='image/jpeg'"> image.gif
</xsl:when>
Despite the fact that invalid syntax is used, this error situation should be
handled in a reasonable way.
Reproducible: Always
Steps to Reproduce:
1.Just let the attached XML- and the XSL-file be input to Mozilla's standalone
XSLT-engine and then run it.
Actual Results: See under bug description
Expected Results: Correct HTML output. Look at the result, if a logical "OR"
is used instead of the invalid, C/C++ - like "||" in the expression.
Probably this bug has the same cause as Bug 67004.
The attached example may not be very sophisticated, but it shows the error
situation very clearly.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Error messages need to be reported properly....accepting bug.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Reporter | ||
Comment 4•24 years ago
|
||
There are no error messages - the system just works until all resources are
exhausted. Then it stays there. Win2000 reports low virtual memory.
Depends on: 75102
Fixed with the lexer/parser rewrite
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•