Debian Bug report logs - #512659
djvutoxml can produce invalid XML

version graph

Package: djvulibre-bin; Maintainer for djvulibre-bin is Barak A. Pearlmutter <bap@debian.org>; Source for djvulibre-bin is src:djvulibre.

Reported by: Jakub Wilk <jwilk@debian.org>

Date: Thu, 22 Jan 2009 16:27:04 UTC

Severity: normal

Found in version djvulibre/3.5.21-3

Forwarded to http://sourceforge.net/tracker/?func=detail&atid=406583&aid=2531325&group_id=32953

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, ubanus@users.sf.net, bap@debian.org (Barak A. Pearlmutter):
Bug#512659; Package djvulibre-bin. (Thu, 22 Jan 2009 16:27:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jakub Wilk <ubanus@users.sf.net>:
New Bug report received and forwarded. Copy sent to ubanus@users.sf.net, bap@debian.org (Barak A. Pearlmutter). (Thu, 22 Jan 2009 16:27:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jakub Wilk <ubanus@users.sf.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: djvutoxml can produce invalid XML
Date: Thu, 22 Jan 2009 17:25:34 +0100
Package: djvulibre-bin
Version: 3.5.21-3
Severity: normal
File: /usr/bin/djvutoxml

It is possible that djvutoxml produces (for a perfectly valid DjVu file) 
an XML file which is not well-formed:

$ printf 'P1 3 3 0 0 0 0 0 0 0 0 0' > dummy.pbm
$ cjb2 dummy.pbm dummy.djvu
$ printf 'select 1\nset-txt\n(page 0 0 1 1 (line 0 0 1 1 "foo\\fbar"))\n.\n' > sedscript 
$ cat sedscript 
select 1
set-txt
(page 0 0 1 1 (line 0 0 1 1 "foo\fbar"))
.
$ djvused -s -f sedscript dummy.djvu 
$ djvutoxml dummy.djvu > dummy.xml
$ xmllint --noout dummy.xml 
dummy.xml:14: parser error : xmlParseCharRef: invalid xmlChar value 12
foo&#12;bar            </LINE>
        ^

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages djvulibre-bin depends on:
ii  curl                          7.18.2-8   Get a file from an HTTP, HTTPS or 
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libdjvulibre21                3.5.21-3   Runtime support for the DjVu image
ii  libgcc1                       1:4.3.2-4  GCC support library
ii  libstdc++6                    4.3.2-4    The GNU Standard C++ Library v3
ii  libtiff4                      3.8.2-11   Tag Image File Format (TIFF) libra

-- 
Jakub Wilk




Noted your statement that Bug has been forwarded to http://sourceforge.net/tracker/?func=detail&atid=406583&aid=2531325&group_id=32953. Request was from Bastien ROUCARIES <roucaries.bastien+debian@gmail.com> to control@bugs.debian.org. (Fri, 23 Jan 2009 16:24:10 GMT) Full text and rfc822 format available.

Changed Bug submitter to 'Jakub Wilk <jwilk@debian.org>' from 'Jakub Wilk <ubanus@users.sf.net>' Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Tue, 15 Feb 2011 16:54:07 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 11:35:43 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.