[gs-devel] Uninitialized Pointer in gx_ht_write() with XPS
jimmyast at katamail.com
jimmyast at katamail.com
Thu Sep 6 09:33:13 PDT 2007
Hi,
if I try to process an XPS file I get a segmentation fault whenever banding is enabled. The problem is an unitialized pointer in gx_ht_write() in gxdhtserial.c file. It seems like the halftone device (pdht) has not been initialized before calling the latter function. I am using ghostpcl-r2889+8191.
The problem can be easily reproduced with the bitrgb device on a letter page with resolution 500 dpi (-r500 switch of the command line). 500 dpi is enough to enable the clist because mem_space >= space_params.MaxBitmap in gdev_prn_allocate() function (gdevprn.c file.)
At lower resolutions the bug can't be seen because banding is not used.
The problem appeared soem weeks ago after xps/xpspage.c file has been modified to handle image transparency. I'm talking about gs_push_pdf14trans_device() and gs_pop_pdf14trans_device() calls in xps_parse_fixed_page().
Indeed if I comment out these calls, the XPS file is processed fine with banding.
Could you please give me some hints about how to correctly initialize pdht pointer before calling gx_ht_write()?
Thank you in advance,
Jimmy
________________________________________________________________________
SERVIZIO VOICE: TELEFONA e INVIA SMS dal tuo computer a tariffe vantaggiose!
Scopri come telefonare e videochiamare gratis da pc a pc.
http://voice.repubblica.it
More information about the gs-devel
mailing list