[poppler] Bug with drawImageMaskPrescaled

Jeff Muizelaar jeff at infidigm.net
Tue Aug 7 09:27:45 PDT 2007


On Tue, Aug 07, 2007 at 07:16:41AM +0200, Salvatore De Paolis wrote:
> Hi all
> while working on PopplerLinkMapping for the pdf viewer plugin(claws mail) I
> discover i got a SIGFPE while rotating a document.
> It happends cause in drawImageMaskPrescaled there's no check for scaleHeight ==
> 0. Adding a check and set to 1 the value doesn't help (as it's done for
> scaleWidth) cause it show a blank document.
> 
> While rotating on certain conditions (not in all cases) it happends to have
> 
>  /* this scaling code is adopted from the splash image scaling code */
>   cairo_get_matrix(cairo, &matrix);
> 
> matrix which is firstly 0 and after nan so seems to be the problem in
> cairo_get_matrix which fail to fill the CTM.

I've implemented a workaround for this in CVS. Let me know if it works
for you.

> 
> What's actually the difference btw drawImageMaskPrescaled and
> drawImageMaskRegular?

Prescaled does the scaling and gives a scaled image to cairo. Regular
let's cairo do the scaling (it does a bad job).

-Jeff



More information about the poppler mailing list