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.000000000 +0100 +++ b/xpdf/XPDFCore.cc 2009-11-06 00:26:15.000000000 +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);