Bug 688904

Summary: Valgrind: Uninitialized memory in Type1 to Type2 conversion
Product: Ghostscript Reporter: Alex Cherepanov <alex>
Component: PDF WriterAssignee: leonardo <leonardo>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: master   
Hardware: PC   
OS: Windows NT   
Customer: Word Size: ---

Description Alex Cherepanov 2006-09-23 13:09:05 UTC
Valgrind reports uninitialized memory in ps2pdf
conversion of 401-01.ps and Bug687846.ps
The bug is included in toolbin/vg_bug.supp

Command line:
valgrind -q --db-attach=no --gen-suppressions=yes
 --suppressions=gs/toolbin/vg_okay.supp 
 gs/debugobj/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/dev/null
 401-01.ps

Conditional jump or move depends on uninitialised value(s)
   at 0x82CC556: psf_convert_type1_to_type2 (gdevpsfx.c:643)
   by 0x82C4148: cff_write_CharStrings_offsets (gdevpsf2.c:838)
   by 0x82C5FE7: psf_write_cid0_font (gdevpsf2.c:1638)
   by 0x82A6A4E: pdf_write_embedded_font (gdevpdtb.c:580)
   by 0x82A9D86: pdf_finish_FontDescriptor (gdevpdtd.c:558)
   by 0x82BA93B: pdf_finish_resources (gdevpdtw.c:638)
   by 0x82BA9FC: pdf_close_text_document (gdevpdtw.c:657)
   by 0x8270666: pdf_close (gdevpdf.c:1093)
   by 0x82EADB3: gs_closedevice (gsdevice.c:505)
   by 0x80D9F03: gs_main_finit (imain.c:772)
   by 0x80DA2B1: gs_to_exit_with_code (imain.c:824)
   by 0x804B0C4: main (gs.c:119)

Conditional jump or move depends on uninitialised value(s)
   at 0x82CBA6A: type2_put_fixed (gdevpsfx.c:350)
   by 0x82CC723: psf_convert_type1_to_type2 (gdevpsfx.c:680)
   by 0x82C4148: cff_write_CharStrings_offsets (gdevpsf2.c:838)
   by 0x82C5FE7: psf_write_cid0_font (gdevpsf2.c:1638)
   by 0x82A6A4E: pdf_write_embedded_font (gdevpdtb.c:580)
   by 0x82A9D86: pdf_finish_FontDescriptor (gdevpdtd.c:558)
   by 0x82BA93B: pdf_finish_resources (gdevpdtw.c:638)
   by 0x82BA9FC: pdf_close_text_document (gdevpdtw.c:657)
   by 0x8270666: pdf_close (gdevpdf.c:1093)
   by 0x82EADB3: gs_closedevice (gsdevice.c:505)
   by 0x80D9F03: gs_main_finit (imain.c:772)
   by 0x80DA2B1: gs_to_exit_with_code (imain.c:824)

Conditional jump or move depends on uninitialised value(s)
   at 0x82CB911: type2_put_int (gdevpsfx.c:323)
   by 0x82CBA80: type2_put_fixed (gdevpsfx.c:351)
   by 0x82CC723: psf_convert_type1_to_type2 (gdevpsfx.c:680)
   by 0x82C4148: cff_write_CharStrings_offsets (gdevpsf2.c:838)
   by 0x82C5FE7: psf_write_cid0_font (gdevpsf2.c:1638)
   by 0x82A6A4E: pdf_write_embedded_font (gdevpdtb.c:580)
   by 0x82A9D86: pdf_finish_FontDescriptor (gdevpdtd.c:558)
   by 0x82BA93B: pdf_finish_resources (gdevpdtw.c:638)
   by 0x82BA9FC: pdf_close_text_document (gdevpdtw.c:657)
   by 0x8270666: pdf_close (gdevpdf.c:1093)
   by 0x82EADB3: gs_closedevice (gsdevice.c:505)
   by 0x80D9F03: gs_main_finit (imain.c:772)
Comment 1 Alex Cherepanov 2007-08-17 05:56:25 UTC

*** This bug has been marked as a duplicate of 688914 ***