Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
GraphicsMagick
GraphicsMagick-disable-insecure-coders.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GraphicsMagick-disable-insecure-coders.patch of Package GraphicsMagick
Index: GraphicsMagick-1.3.43/coders/pdf.c =================================================================== --- GraphicsMagick-1.3.43.orig/coders/pdf.c +++ GraphicsMagick-1.3.43/coders/pdf.c @@ -499,7 +499,7 @@ ModuleExport void RegisterPDFImage(void) entry->seekable_stream=True; entry->description="Encapsulated Portable Document Format"; entry->module="PDF"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("PDF"); @@ -512,7 +512,7 @@ ModuleExport void RegisterPDFImage(void) entry->seekable_stream=True; entry->description="Portable Document Format"; entry->module="PDF"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); } Index: GraphicsMagick-1.3.43/coders/ps.c =================================================================== --- GraphicsMagick-1.3.43.orig/coders/ps.c +++ GraphicsMagick-1.3.43/coders/ps.c @@ -456,7 +456,7 @@ ModuleExport void RegisterPSImage(void) entry->adjoin=False; entry->description="Adobe Encapsulated PostScript Interchange format"; entry->module="PS"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("EPS"); @@ -468,7 +468,7 @@ ModuleExport void RegisterPSImage(void) entry->adjoin=False; entry->description="Adobe Encapsulated PostScript"; entry->module="PS"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("EPSF"); @@ -480,7 +480,7 @@ ModuleExport void RegisterPSImage(void) entry->adjoin=False; entry->description="Adobe Encapsulated PostScript"; entry->module="PS"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("EPSI"); @@ -492,7 +492,7 @@ ModuleExport void RegisterPSImage(void) entry->adjoin=False; entry->description="Adobe Encapsulated PostScript Interchange format"; entry->module="PS"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("PS"); @@ -503,7 +503,7 @@ ModuleExport void RegisterPSImage(void) entry->magick=(MagickHandler) IsPS; entry->description="Adobe PostScript"; entry->module="PS"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); } Index: GraphicsMagick-1.3.43/coders/ps2.c =================================================================== --- GraphicsMagick-1.3.43.orig/coders/ps2.c +++ GraphicsMagick-1.3.43/coders/ps2.c @@ -252,7 +252,7 @@ ModuleExport void RegisterPS2Image(void) entry->seekable_stream=True; entry->description="Adobe Level II Encapsulated PostScript"; entry->module="PS2"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("PS2"); @@ -260,7 +260,7 @@ ModuleExport void RegisterPS2Image(void) entry->seekable_stream=True; entry->description="Adobe Level II PostScript"; entry->module="PS2"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); } Index: GraphicsMagick-1.3.43/coders/ps3.c =================================================================== --- GraphicsMagick-1.3.43.orig/coders/ps3.c +++ GraphicsMagick-1.3.43/coders/ps3.c @@ -394,7 +394,7 @@ ModuleExport void RegisterPS3Image(void) entry->description="Adobe Level III Encapsulated PostScript"; entry->seekable_stream=MagickTrue; entry->module="PS3"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); entry=SetMagickInfo("PS3"); @@ -402,7 +402,7 @@ ModuleExport void RegisterPS3Image(void) entry->description="Adobe Level III PostScript"; entry->seekable_stream=MagickTrue; entry->module="PS3"; - entry->coder_class=PrimaryCoderClass; + entry->coder_class=BrokenCoderClass; (void) RegisterMagickInfo(entry); } Index: GraphicsMagick-1.3.43/config/delegates.mgk.in =================================================================== --- GraphicsMagick-1.3.43.orig/config/delegates.mgk.in +++ GraphicsMagick-1.3.43/config/delegates.mgk.in @@ -76,27 +76,27 @@ <delegate decode="dot" command='"@DOTDecodeDelegate@" -Tps "%i" -o "%o"' /> <delegate decode="dvi" command='"@DVIDecodeDelegate@" -q -o "%o" "%i"' /> <delegate decode="edit" stealth="True" command='"@EditorDelegate@" -title "Edit Image Comment" -e vi "%o"' /> - <delegate decode="eps" encode="pdf" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPDFDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> - <delegate decode="eps" encode="ps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> + <!--delegate decode="eps" encode="pdf" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPDFDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> + <!--delegate decode="eps" encode="ps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> <delegate decode="fig" command='"@FIGDecodeDelegate@" -L ps "%i" "%o"' /> <!-- Read monochrome Postscript, EPS, and PDF --> - <delegate decode="gs-mono" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSMonoDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-mono" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSMonoDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read grayscale Postscript, EPS, and PDF --> - <delegate decode="gs-gray" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSGrayDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-gray" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSGrayDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read colormapped Postscript, EPS, and PDF --> - <delegate decode="gs-palette" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPaletteDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-palette" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPaletteDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read color Postscript, EPS, and PDF --> - <delegate decode="gs-color" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSColorDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-color" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSColorDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read color+alpha Postscript, EPS, and PDF --> - <delegate decode="gs-color+alpha" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSColorAlphaDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-color+alpha" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSColorAlphaDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read CMYK Postscript, EPS, and PDF --> - <delegate decode="gs-cmyk" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSCMYKDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /> + <!--delegate decode="gs-cmyk" stealth="True" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSCMYKDevice@ -dTextAlphaBits=%u -dGraphicsAlphaBits=%u -r%s %s "-sOutputFile=%s" -- "%s" -c quit' /--> <!-- Read monochrome PDF using Poppler's pdftoppm --> <delegate decode="poppler-mono" stealth="True" command='"pdftoppm" "-mono" "-freetype" "yes" "-aa" "yes" "-aaVector" "yes" "-rx" "72" "-ry" "72" "%s" ">" "%s"' /> @@ -120,16 +120,16 @@ <!-- Write MPEG file using mpeg2encode --> <delegate encode="mpeg-encode" stealth="True" command='"@MPEGEncodeDelegate@" "%i" "%o"' /> <!-- Convert PDF to Encapsulated Poscript using Ghostscript --> - <delegate decode="pdf" encode="eps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSEPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> + <!--delegate decode="pdf" encode="eps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSEPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> <!-- Convert PDF to Postcript using Ghostscript --> - <delegate decode="pdf" encode="ps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> + <!--delegate decode="pdf" encode="ps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> <!-- Convert PNM file to IFF ILBM format using ppmtoilbm --> <delegate decode="pnm" encode="ilbm" mode="encode" command='"@ILBMEncodeDelegate@" -24if "%i" > "%o"' /> <delegate decode="pnm" encode="launch" mode="encode" command='"@LaunchDelegate@" "%i"' /> <delegate decode="pnm" encode="win" mode="encode" command='"@GMDelegate@" display -immutable "%i"' /> - <delegate decode="ps" encode="eps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSEPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> - <delegate decode="ps" encode="pdf" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPDFDevice@ "-sOutputFile=%o" -- "%i" -c quit' /> - <delegate decode="ps" encode="print" mode="encode" command='"@PrintDelegate@" "%i"' /> + <!--delegate decode="ps" encode="eps" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSEPSDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> + <!--delegate decode="ps" encode="pdf" mode="bi" command='"@PSDelegate@" -sstdout=%%stderr -q -dBATCH -dSAFER -dMaxBitmap=50000000 -dNOPAUSE -sDEVICE=@GSPDFDevice@ "-sOutputFile=%o" -- "%i" -c quit' /--> + <!--delegate decode="ps" encode="print" mode="encode" command='"@PrintDelegate@" "%i"' /--> <!-- Read HTML file --> <delegate decode="shtml" command='"@HTMLDecodeDelegate@" -U -o "%o" "%i"' /> <delegate encode="show" stealth="True" command='"@GMDelegate@" display -immutable -delay 0 -window_group %g -title "%l of %f" "%o" &' /> Index: GraphicsMagick-1.3.43/Makefile.in =================================================================== --- GraphicsMagick-1.3.43.orig/Makefile.in +++ GraphicsMagick-1.3.43/Makefile.in @@ -4363,7 +4363,6 @@ TESTS_TESTS = \ tests/rwfile.tap \ tests/rwfile_sized.tap \ tests/rwfile_miff.tap \ - tests/rwfile_pdf.tap \ tests/rwfile_deep.tap TESTS_EXTRA_DIST = \ Index: GraphicsMagick-1.3.43/tests/rwblob.tap =================================================================== --- GraphicsMagick-1.3.43.orig/tests/rwblob.tap +++ GraphicsMagick-1.3.43/tests/rwblob.tap @@ -10,7 +10,7 @@ rwblob=./rwblob check_types='bilevel gray palette truecolor' # Number of tests we plan to run -test_plan_fn 217 +test_plan_fn 209 # ART format for type in ${check_types} @@ -68,18 +68,6 @@ do test_command_fn "DPX ${type}" ${MEMCHECK} ${rwblob} "${SRCDIR}/input_${type}.miff" DPX done -# EPDF format -for type in ${check_types} -do - test_command_fn "EPDF ${type}" -F 'PS' ${MEMCHECK} ${rwblob} "${SRCDIR}/input_${type}.miff" EPDF -done - -# EPT format -for type in ${check_types} -do - test_command_fn "EPT ${type}" -F 'PS TIFF' ${MEMCHECK} ${rwblob} "${SRCDIR}/input_${type}.miff" EPT -done - # FAX format for type in ${check_types} do Index: GraphicsMagick-1.3.43/tests/rwfile.tap =================================================================== --- GraphicsMagick-1.3.43.orig/tests/rwfile.tap +++ GraphicsMagick-1.3.43/tests/rwfile.tap @@ -12,7 +12,7 @@ check_types='bilevel gray palette trueco check_types_noone='bilevel gray palette truecolor' # Number of tests we plan to run -test_plan_fn 848 +test_plan_fn 798 # ART format for type in ${check_types} @@ -84,48 +84,6 @@ do test_command_fn "DPX ${type} (stdio)" ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" DPX done -# EPDF format -for type in ${check_types} -do - test_command_fn "EPDF ${type}" -F 'PS' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPDF - #test_command_fn "EPDF ${type} (stdio)" -F 'PS' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPDF -done - -# EPSF format -for type in ${check_types} -do - test_command_fn "EPSF ${type}" -F 'PS' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPSF - #test_command_fn "EPSF ${type} (stdio)" -F 'PS' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPSF -done - -# EPSI format -for type in ${check_types} -do - test_command_fn "EPSI ${type}" -F 'PS' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPSI - #test_command_fn "EPSI ${type} (stdio)" -F 'PS' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPSI -done - -# EPI format -for type in ${check_types} -do - test_command_fn "EPI ${type}" -F 'PS' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPI - #test_command_fn "EPI ${type} (stdio)" -F 'PS' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPI -done - -# EPS format -for type in ${check_types} -do - test_command_fn "EPS ${type}" -F 'PS' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPS - #test_command_fn "EPS ${type} (stdio)" -F 'PS' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPS -done - -# EPT format -for type in ${check_types} -do - test_command_fn "EPT ${type}" -F 'PS TIFF' ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" EPT - #test_command_fn "EPT ${type} (stdio)" -F 'PS TIFF' ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" EPT -done - # FAX format for type in ${check_types} do @@ -305,13 +263,6 @@ do test_command_fn "PCX ${type} (stdio)" ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PCX done -# PDF format -for type in ${check_types} -do - test_command_fn "PDF ${type}" -F PS ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" PDF - #test_command_fn "PDF ${type} (stdio)" -F PS ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PDF -done - # PGM format for type in ${check_types} do @@ -371,27 +322,6 @@ do done done -# PS format -for type in ${check_types} -do - test_command_fn "PS ${type}" -F PS ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" PS - #test_command_fn "PS ${type} (stdio)" -F PS ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PS -done - -# PS2 format -for type in ${check_types} -do - test_command_fn "PS2 ${type}" -F PS ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" PS2 - #test_command_fn "PS2 ${type} (stdio)" -F PS ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PS2 -done - -# PS3 format -for type in ${check_types} -do - test_command_fn "PS3 ${type}" -F PS ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" PS3 - #test_command_fn "PS3 ${type} (stdio)" -F PS ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" PS3 -done - # PSD format for type in ${check_types} do
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor