[Bug 662483] New: ghostscript tiffg4 device ignores lseek errors
https://bugzilla.novell.com/show_bug.cgi?id=662483 https://bugzilla.novell.com/show_bug.cgi?id=662483#c0 Summary: ghostscript tiffg4 device ignores lseek errors Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: giecrilj@stegny.2a.pl QAContact: jsmeix@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 gs does not fail when it fails to seek a pipe and produces invalid output for the cups backend. Reproducible: Always Steps to Reproduce: 1. { LANG=C args='-dBATCH -dSAFER -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=- /usr/share/doc/packages/ghostscript-library/examples/chess.ps' && set -o pipefail && gs $args >/tmp/chess1.tiff && gs $args | cat >/tmp/chess2.tiff && { diff /tmp/chess{1,2}.tiff; } } 2. 3. Actual Results: 1. Files /tmp/chess1.tiff and /tmp/chess2.tiff differ Expected Results: 1. strace gs shows: lseek(1, 7, SEEK_SET) = -1 ESPIPE (Illegal seek) This should be a fatal error but it does not cause the tiffg4 driver to fail. It happily continues to produce invalid data. I would have posted it to Artifex Bugzilla directly but I am still blocked as a troll (whistleblower) in because of Bug 608071. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=662483
https://bugzilla.novell.com/show_bug.cgi?id=662483#c1
--- Comment #1 from Christopher Yeleighton
https://bugzilla.novell.com/show_bug.cgi?id=662483
https://bugzilla.novell.com/show_bug.cgi?id=662483#c
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=662483
https://bugzilla.novell.com/show_bug.cgi?id=662483#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=662483
https://bugzilla.novell.com/show_bug.cgi?id=662483#c3
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com