[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#422712: gs-esp: pstoraster fails with signal 11 when printing cups testpage



tags 422712 + moreinfo
quit

Hi,

Troy Rollo wrote:

> This only seems to affect applications using the CUPS v1.1 libraries - 
> applications using the CUPS v1.2 libraries seem to work OK.

> diff -ru gs-esp-8.15.3.dfsg.1/src/gxcht.c gs-esp-8.15.3.dfsg.1-fixed/src/gxcht.c
> --- gs-esp-8.15.3.dfsg.1/src/gxcht.c	2005-01-19 15:08:41.000000000 +1100
> +++ gs-esp-8.15.3.dfsg.1-fixed/src/gxcht.c	2007-12-25 19:55:36.000000000 +1100
> @@ -1087,7 +1087,14 @@
>      int tw = btile->size.x;
>      int bx = ((ptc->tile_shift = btile->shift) == 0 ? endx :
>  	      endx + lasty / btile->size.y * ptc->tile_shift) % tw;
> -    int by = lasty % btile->size.y;
> +    int by;
> +
> +    if (lasty < 0)
> +    	by = btile->size.y - (-lasty % btile->size.y);
> +    else
> +    	by = lasty % btile->size.y;
> +
> +    by = lasty % btile->size.y;
>  

This patch does not seem to be part of current ghostscript.  Could
you explain what it does?  Is there an example postscript file and gs
invocation that would trigger it, or is it useful for robustness reasons?

Thanks and sorry for the long delay,
Jonathan




Reply to: