Ticket #117 (closed defect: fixed)

Opened 4 months ago

Last modified 2 weeks ago

Segmentation fault if input is not XML-FO

Reported by: dleidert Assigned to: tkg
Priority: minor Milestone: xmlroff 0.6.0
Component: libfo Version: 0.5.x
Keywords: C Cc:
Blocking:

Description

xmlroff segfaults, if you try to give it a file, that is not XML-FO. Consider the following simple file example:

<?xml version="1.0"?> <foo/>

Try to give it to xmlroff and it will end in a segfault. xmlroff should of course error out, but it shouldn't die with a segfault.

Attachments

gdb.txt (4.4 kB) - added by dleidert on 03/17/08 02:41:02.
backtrace

Change History

03/17/08 02:41:02 changed by dleidert

  • attachment gdb.txt added.

backtrace

03/17/08 21:19:55 changed by dleidert

Just a comment to not misunderstand: The segmentation fault occurs, if the given input file is not XML-FO and there is no stylesheet given. Say the above XML example is saved to a file tmp.xml. Then

xmlroff tmp.xml

dies with a segmentation fault.

03/17/08 22:57:41 changed by tkg

  • keywords set to C.
  • owner set to tkg.
  • status changed from new to assigned.
  • milestone set to xmlroff 0.6.0.

I did know what you meant.

07/06/08 10:36:19 changed by tkg

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [435]) Catching if result document's document element is not a fo:root. (Closes #117.)