Package: xmlindent Version: 0.2.17-4 Severity: normal Tags: patch Dear Maintainer,
I you feed xmlindent the following input, it crashes because of the abort() in xmlindent.yy. <email>"John" <j...@example.com></email> Instead, I'd like it to exit gracefully, preferably with a linenumber. The attached patch improves the situation from: $ echo '<email>"John" <j...@example.com></email>' | xmlindent Error: Scanner did not recognize string '<'. Aborted (core dumped) (exitcode SIGABORT) To this: $ echo '<email>"John" <j...@example.com></email>' | ./xmlindent Error: Scanner did not recognize string '<' near line 1. (exitcode 1) Cheers, Walter Doekes P.S. I overrode the version with -V to 0.2.17-4, while jessie has 0.2.17-3. The result is the same because the bug is present in both/all versions. -- System Information: Debian Release: 8.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)