Bug#464753: xpdf: segmentation fault when using mouse wheel

2009-11-05 Thread Christophe Mouilleron
Hi,

I suggest the patch (in attachment) to correct this bug.
I am note quiet sure that this is the right way to do things,
but I didn't see any strange thing after some tests.

Hope this will help.
Christophe Mouilleron.

PS : if this patch is ok, it may be useful for #512381 also.
#! /bin/sh /usr/share/dpatch/dpatch-run
## fix-437725.dpatch from Arno Renevier arenev...@fdn.fr
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix segmentation fault when drawing an empty page

@DPATCH@
--- a/xpdf/XPDFCore.cc  2009-11-06 00:25:32.0 +0100
+++ b/xpdf/XPDFCore.cc  2009-11-06 00:26:15.0 +0100
@@ -1335,7 +1335,7 @@
   }
 
   // draw the document
-  if (tile) {
+  if (tile  tile-image) {
 XPutImage(display, drawAreaWin, drawAreaGC, tile-image,
  xSrc, ySrc, xDest, yDest, width, height);


Bug#464753: xpdf: segmentation fault when using mouse wheel

2008-02-08 Thread Christophe MOUILLERON
Package: xpdf-reader
Version: 3.02-1.3
Severity: normal

Hi,

When I try to go from page 3 to page 5 using the mouse wheel on the
following pdf file :
http://chadok.info/~cmouille/book-en.pdf
I get a Erreur de segmentation message.

This seems to happen only with the last version of xpdf (3.02-1.3) and
when the windows is maximized and I am using the fit width option.


Here is what I have with gdb on /usr/bin/xpdf.bin :

Program received signal SIGSEGV, Segmentation fault.
0xb7c57d85 in XPutImage (dpy=0x8181d80, d=48234583, gc=0x94d4bd8, image=0x0, 
req_xoffset=0, req_yoffset=0, x=0, y=652, req_width=1234, req_height=4)
at ../../src/PutImage.c:967
967 ../../src/PutImage.c: No such file or directory.
in ../../src/PutImage.c
(gdb) bt full
#0  0xb7c57d85 in XPutImage (dpy=0x8181d80, d=48234583, gc=0x94d4bd8, 
image=0x0, req_xoffset=0, req_yoffset=0, x=0, y=652, req_width=1234, 
req_height=4) at ../../src/PutImage.c:967
width = 1234
height = 4
dest_bits_per_pixel = value optimized out
dest_scanline_pad = value optimized out
#1  0x080db9aa in ?? ()
No symbol table info available.
#2  0x080a5fa1 in ?? ()
No symbol table info available.
#3  0x080aa4bc in ?? ()
No symbol table info available.
#4  0x080dcc07 in ?? ()
No symbol table info available.
#5  0x080a591e in ?? ()
No symbol table info available.
#6  0x080a86df in ?? ()
No symbol table info available.
#7  0x080e6f3a in ?? ()
No symbol table info available.
#8  0x080e88db in ?? ()
No symbol table info available.
#9  0x080de44b in ?? ()
No symbol table info available.
#10 0xb7d663ab in XtCallCallbackList () from /usr/lib/libXt.so.6
No symbol table info available.
#11 0xb7e180da in _XmDrawingAreaInput () from /usr/lib/libXm.so.2
No symbol table info available.
#12 0xb7d9c971 in ?? () from /usr/lib/libXt.so.6
No symbol table info available.
#13 0x081cc960 in ?? ()
No symbol table info available.
#14 0xbfd603dc in ?? ()
No symbol table info available.
#15 0x in ?? ()
No symbol table info available.


I don't quite well understand, but it seems to be a problem in xpdf since
we have image=0x0.


Regards,
Christophe.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xpdf depends on:
ii  xpdf-common   3.02-1.3   Portable Document Format (PDF) sui
ii  xpdf-reader   3.02-1.3   Portable Document Format (PDF) sui
ii  xpdf-utils3.02-1.3   Portable Document Format (PDF) sui

xpdf recommends no packages.

Versions of packages xpdf-reader depends on:
ii  gsfonts   1:8.11+urwcyr1.0.7~pre43-2 Fonts for the Ghostscript interpre
ii  lesstif2  1:0.95.0-2.1   OSF/Motif 2.1 implementation relea
ii  libc6 2.7-6  GNU C Library: Shared libraries
ii  libfreetype6  2.3.5-1+b1 FreeType 2 font engine, shared lib
ii  libgcc1   1:4.3-20080116-1   GCC support library
ii  libice6   2:1.0.4-1  X11 Inter-Client Exchange library
ii  libpaper1 1.1.23 library for handling paper charact
ii  libsm62:1.0.3-1+b1   X11 Session Management library
ii  libstdc++64.3-20080116-1 The GNU Standard C++ Library v3
ii  libt1-5   5.1.1-5Type 1 font rasterizer library - r
ii  libx11-6  2:1.0.3-7  X11 client-side library
ii  libxext6  1:1.0.3-2  X11 miscellaneous extension librar
ii  libxp61:1.0.0.xsf1-1 X Printing Extension (Xprint) clie
ii  libxpm4   1:3.5.7-1  X11 pixmap library
ii  libxt61:1.0.5-3  X11 toolkit intrinsics library
ii  xpdf-common   3.02-1.3   Portable Document Format (PDF) sui

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]