[gs-regression] local cluster regression d48a3d162fd38aaa2582e32565c07df41e7c02cb

marcos.woehrmann at artifex.com marcos.woehrmann at artifex.com
Tue Jan 3 15:29:26 UTC 2012


d48a3d1 pdfwrite/ps2write - Properly validate BitsPerComponent for images
------------------------------------------------------------------------
commit d48a3d162fd38aaa2582e32565c07df41e7c02cb
Author: Ken Sharp <ken.sharp at artifex.com>
Date:   Tue Jan 3 13:08:07 2012 +0000

    pdfwrite/ps2write - Properly validate BitsPerComponent for images
    
    Suprisingly (to me) the BitsPerComponent value for images is not validated
    at the interpreter (language) level, but is handled in the graphics library.
    
    pdfwrite and ps2write were not validating the BitsPerComponent, other than
    to check it was 8 or less, and so could create invalid images in the PDF or
    PostScritp output.
    
    This commit adds the missing checks.
    
    Expected Differences
    12-07a.ps - ps2write no longer produces an invalid PostScript file
    12-07a.ps - pdfwrite no longer produces an invalid PDF file
    12-02.ps - ps2write no longer produces an invalid PostScript file
    12-02.ps - pdfwrite no longer produces an invalid PDF file

Changed files:
gs/base/gdevpdfi.c

Products tested: gs ls pcl xps 


New warnings:

None


*****************************************************************************
Seg faults with current rev:

tests_private/pdf/PDF_1.7_FTS/fts_24_2431.pdf.pbmraw.300.1 peeves Seg_Fault
tests_private/ps/ps3cet/32_all.PS.pdf.ppmraw.300.0 macpro Seg_Fault
tests_private/ps/ps3cet/33_all.PS.ps.pkmraw.300.0 macpro Seg_Fault
tests_private/ps/ps3cet/34_all.PS.ps.ppmraw.300.0 macpro Seg_Fault

*****************************************************************************


ran 60531 tests in 1704 seconds on 11 nodes

Differences in 1 of 48872 non-pdfwrite/ps2write test(s):
tests_private/ps/ps3cet/12-07B.PS.pbmraw.300.0 gs macpro i7

Differences in 4 of 7032 pdfwrite test(s):
tests_private/ps/ps3cet/12-02.PS.pdf.pkmraw.300.0 gs pdfwrite macpro meters
tests_private/ps/ps3cet/12-02.PS.pdf.ppmraw.300.0 gs pdfwrite i7 henrysx6
tests_private/ps/ps3cet/12-07A.PS.pdf.pkmraw.300.0 gs pdfwrite i7b miles
tests_private/ps/ps3cet/12-07A.PS.pdf.ppmraw.300.0 gs pdfwrite miles macpro

Differences in 3 of 4627 ps2write test(s):
tests_private/comparefiles/Bug692129.pdf.ps.pkmraw.300.0 gs ps2write macpro x6
tests_private/ps/ps3cet/12-02.PS.ps.pkmraw.300.0 gs ps2write kilometers i7b
tests_private/ps/ps3cet/12-02.PS.ps.ppmraw.300.0 gs ps2write inches i7a

The following 6 regression file(s) have started producing errors:
tests_private/comparefiles/Bug689150.pdf.plank.300.1 gs inches henrysx6 Timeout_reading_input_file
tests_private/comparefiles/Bug691625.ps.plank.300.1 gs x6 i7b Timeout_reading_input_file
tests_private/comparefiles/Bug691740.pdf.plank.300.1 gs henrysx6 i7b Timeout_reading_input_file
tests_private/comparefiles/Bug692217.pdf.pgmraw.300.1 gs peeves i7 Timeout_reading_input_file
tests_private/comparefiles/Bug692263.pdf.plank.300.1 gs macpro i7 Timeout_reading_input_file
tests_private/ps/ps3cet/32_all.PS.pdf.ppmraw.300.0 gs pdfwrite i7 macpro Seg_Fault

The following 2 regression file(s) have stopped producing errors:
tests_private/ps/ps3cet/12-07A.PS.ps.pkmraw.300.0 gs ps2write i7b inches Error_reading_Ghostscript_produced_PDF/PS_file
tests_private/ps/ps3cet/12-07A.PS.ps.ppmraw.300.0 gs ps2write miles meters Error_reading_Ghostscript_produced_PDF/PS_file

-------------------------------------------------------------------------------------------------------

The following 17 regression file(s) had differences but matched at least once in the previous 50 runs:
tests_private/comparefiles/Bug689150.pdf.pdf.ppmraw.300.0 gs pdfwrite peeves inches 63571a25cbd787573f0c4918abe7c783f5e5209c 4 
tests_private/comparefiles/Bug689150.pdf.pdf.ppmraw.300.0 gs pdfwrite peeves inches 63571a25cbd787573f0c4918abe7c783f5e5209c 4 
tests_private/comparefiles/Bug689982.pdf.ps.pkmraw.300.0 gs ps2write kilometers meters 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/comparefiles/Bug689982.pdf.ps.pkmraw.300.0 gs ps2write kilometers meters 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/comparefiles/Bug691778.ps.plank.300.1 gs kilometers x6 d4625c5b5a262501fefabe68f2bbea000dcecb52 3 
tests_private/comparefiles/Bug691778.ps.plank.300.1 gs kilometers x6 d4625c5b5a262501fefabe68f2bbea000dcecb52 3 
tests_private/customer_tests/bug691464b.xl.pbmraw.75.0 pcl miles peeves 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/customer_tests/bug691464b.xl.pdf.ppmraw.600.0 pcl pdfwrite henrysx6 meters 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/pcl/pcl5ccet/32-01.BIN.pdf.ppmraw.600.0 pcl pdfwrite henrysx6 meters 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/pcl/pcl5efts/fts.2130.pbmraw.600.1 pcl kilometers kilometers 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/pcl/pcl5efts/fts.2290.pbmraw.600.1 pcl macpro macpro 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/pdf/PDF_1.7_FTS/fts_17_1703.pdf.cups.300.1 gs x6 x6 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/pdf/PDF_1.7_FTS/fts_24_2431.pdf.cups.300.1 gs kilometers i7b 269ddabfb17657114b8e09b0c2fb2ee8440d92df 18 
tests_private/ps/ps3cet/12-07B.PS.pbmraw.300.1 gs henrysx6 inches 4e681a04de79896406946d5487efe0a37eb6d2b2 2 
tests_private/ps/ps3cet/12-08C.PS.psdcmyk.72.0 gs i7b i7a e391e19723bad3de19beb2fa584f0d9c8b62cac9 9 
tests_private/xl/pcl6cet3.0/C307.bin.pdf.ppmraw.600.0 pcl pdfwrite inches inches 2cde54397abe935ff96300a4ac2588b40ad68d2b 45 
tests_private/xl/pcl6cet3.0/C706.bin.pbmraw.75.0 pcl miles kilometers 4e681a04de79896406946d5487efe0a37eb6d2b2 2 



More information about the gs-regression mailing list