Opened 5 years ago

Closed 5 years ago

Last modified 21 months ago

#426 closed defect (fixed)

xml-templates-processors.adb hangs

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 18.0
Component: Matreshka - XML Processor Version: 0.7.0
Keywords: Cc:

Description

Template processor hangs on '$' characters when it doesn't mean valid expression.

Here is backtrace:

#0  xml.templates.processors.substitute (self=..., text=..., 
    in_attribute=in_attribute@entry=false, result=..., 
    success=success@entry=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:851
#1  0x00007f2dc2176c27 in xml.templates.processors.process_characters (
    self=..., success=success@entry=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:381
#2  0x00007f2dc217f33c in xml.templates.processors.end_element (self=..., 
    namespace_uri=..., local_name=..., qualified_name=..., success=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:290
#3  0x00007f2dc216f6e2 in xml.templates.processors.process_stream (self=..., 
    stream=..., success=success@entry=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:411
#4  0x00007f2dc2175ec4 in xml.templates.processors.substitute.process_expression (success=true, text=...)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:830
#5  xml.templates.processors.substitute (self=..., text=..., 
    in_attribute=in_attribute@entry=false, result=..., 
    success=success@entry=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:918
#6  0x00007f2dc2176c27 in xml.templates.processors.process_characters (
    self=..., success=success@entry=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb---Type <return> to continue, or q <return> to quit---
:381
#7  0x00007f2dc217f33c in xml.templates.processors.end_element (self=..., 
    namespace_uri=..., local_name=..., qualified_name=..., success=true)
    at /home/max/net/matreshka/source/xml/templates/xml-templates-processors.adb:290
#8  0x00007f2dc2743412 in xml.sax.event_readers.parse (self=..., stream=...)
    at /home/max/net/matreshka/design/forum/awfc/xml-sax-event_readers.adb:256
#9  0x00007f2dc273c48e in awfc.page_generators.render (self=..., session=...)
    at /home/max/net/matreshka/design/forum/awfc/awfc-page_generators.adb:210

Text contains '$1_000_000'.

Change History (4)

comment:1 by Maxim Reznik, 5 years ago

In 5482:

Join streams of page and its content

Refs #426

comment:2 by Maxim Reznik, 5 years ago

Milestone: 0.8.0
Resolution: fixed
Status: newclosed

comment:3 by Maxim Reznik, 3 years ago

In 5749:

Avoid inifity loop on '$' in XML template.

Refs #426

comment:4 by vadim.godunko, 21 months ago

Milestone: 0.8.018.0

Milestone renamed

Note: See TracTickets for help on using tickets.