github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/share/doc/GraphicsMagick/ChangeLog (about) 1 2020-02-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 2 3 * version.sh: Updates in preparation for the 1.3.35 release. 4 Merge changes for 1.3.35 into GraphicsMagick-1_3 branch. 5 6 * www/INSTALL-windows.rst: Update Windows installation and build 7 documentation. 8 9 2020-02-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 10 11 * NEWS.txt: Update with News since previous release. 12 13 * magick/magick.c (InitializeMagickSignalHandlers): This private 14 implementation function is now a static function as it should have 15 been. 16 (InitializeMagickEx): New function which may be used in place of 17 InitializeMagick() to initialize GraphicsMagick. This 18 initialization function returns an error status value, may update 19 a passed ExceptionInfo structure with error information, and 20 provides an options parameter which supports simple bit-flags to 21 tailor initialization. The signal handler registrations are 22 skipped if the MAGICK_OPT_NO_SIGNAL_HANDER flag is set in the 23 options. 24 25 2020-02-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 26 27 * magick/magick.c (MagickToMime): Add a MIME translation for 28 "jpg". Issue reported by Pro Turm. 29 30 2020-02-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 31 32 * www/INSTALL-windows.rst: Add quoting to avoid losing backslashes 33 in Windows paths. 34 35 2020-02-16 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 36 37 * magick/common.h: Add missing unsupported handling for some 38 recently added GCC/Clang attributes. 39 40 * magick/: Move all remaining private implementation code in 41 public headers which is guarded by MAGICK_IMPLEMENTATION into 42 private headers, which are never installed. 43 44 2020-02-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 45 46 * coders/tiff.c (WriteTIFFImage): Evidence suggests that large 47 strip sizes improve performance by reducing the number of I/Os. 48 The defaults suggested by libtiff are way to small for today's 49 images and computers. Default TIFF strip sizes so that each 50 uncompressed strip consumes up to 1MiB of memory, or 4MiB for FAX 51 oriented codecs, or based on LZMA compression level when using 52 LZMA compression. The default size may be adjusted via the 53 TIFF_BYTES_PER_STRIP preprocessor definition. 54 55 2020-02-09 Fojtik Jaroslav <JaFojtik@seznam.cz> 56 57 * coders/wpg.c ZeroFillMissing data will never been triggered when 58 y>=image->rows. 59 60 2020-02-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 61 62 * magick/render.c (DrawImage): Limit pattern dimensions by 63 LONG_MAX rather than ULONG_MAX since this seems more likely to 64 avoid arithmetic overflows later on. 65 66 2020-02-09 Fojtik Jaroslav <JaFojtik@seznam.cz> 67 68 * coders/wpg.c Check for exception in image. 69 70 2020-02-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 71 72 * magick/command.c (VersionCommand): Add Google perftools tcmalloc 73 to the available feature support. 74 75 * www/INSTALL-unix.rst: Include some information about building 76 with MSYS2. 77 78 * coders/png.c (ReadOnePNGImage): Eliminate compilation warnings 79 about signed/unsigned comparisons. 80 81 * magick/image.c: Remove private global string constants, and one 82 private global unsigned long constant, from the library ABI. 83 Since the global constants were declared via a private header and 84 only used within the GraphicsMagick build, removing these does not 85 impact the public ABI. The globals removed are BackgroundColor, 86 BorderColor, DefaultTileFrame, DefaultTileGeometry, 87 DefaultTileLabel, ForegroundColor, HighlightColor, MatteColor, 88 PSDensityGeometry, PSPageGeometry, and DefaultCompressionQuality. 89 90 2020-02-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 91 92 * magick/render.c (DrawImage): Apply draconian pattern 93 specification offset and dimension validations. Hopefully there 94 is no impact to usability. If so please report it as a bug. 95 Fixes oss-fuzz 20586 "graphicsmagick:coder_MVG_fuzzer: 96 Integer-overflow in DrawPolygonPrimitive". 97 98 * coders/svg.c (ReadSVGImage): Fix dereference of NULL pointer 99 when stopping image timer. 100 101 2020-02-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 102 103 * coders/pict.c (DecodeImage): Allocate extra scanline memory to 104 allow small RLE overrun. Fixes oss-fuzz 20271 105 "graphicsmagick:coder_PICT_fuzzer: Heap-buffer-overflow in 106 ExpandBuffer" and 20272 "graphicsmagick:coder_PICT_fuzzer: 107 Heap-buffer-overflow in DecodeImage". 108 109 * PerlMagick/t/wmf/read.t: Update WMF reference images. Relax 110 test requirements for ski.wmf. 111 112 * locale/C.mgk: Correct error message associated with 113 "UnsupportedNumberOfRows". Patch was submitted by Thorsten 114 Alteholz via private email on 2020-02-05. 115 116 2020-02-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 117 118 * coders/topol.c: Include magick/magick_endian.h. 119 120 2020-02-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 121 122 * magick, coders, wand: Added copious casts to avoid possible 123 integer overflows in the Microsoft Windows 64-bit build, where 124 sizeof(long) < sizeof(size_t). 125 126 2020-01-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 127 128 * magick/render.h ("PrimitiveInfo"): Change PrimitiveInfo 129 coordinates from type 'unsigned long' to 'size_t'. 130 131 2020-01-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 132 133 * magick/gradient.c (GradientImage): Warnings reduction, plus note 134 about incorrect diagonal gradients math. 135 136 2020-01-20 Fojtik Jaroslav <JaFojtik@seznam.cz> 137 138 * VisualMagick\configure\configure.cpp Option /arch:SSE2 is 139 available only for 32 bit build. 140 141 2020-01-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 142 143 * coders/pcd.c (DecodeImage): Assure that pcd_length gets 144 initialized with something. 145 146 * Magick++/lib/Options.cpp (strokeDashArray): Add needless check 147 for _drawInfo->dash_pattern null in order to make static analysis 148 happy. 149 150 * magick/render.c (DestroyPolygonInfo): Make sure to not 151 dereference a null edges pointer. 152 153 * coders/pdb.c (WritePDBImage): Make sure that null comment value 154 is not dereferenced. 155 156 * coders/vid.c (ReadVIDImage): Make sure that 157 ThrowVIDReaderException does not dereference a null pointer. 158 159 * magick/quantize.c (ClassifyImageColors): Fix error handling so a 160 null pointer won't be consumed after a memory allocation failure. 161 Changed the location of some variable declarations and added some 162 comments. 163 164 2020-01-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 165 166 * coders/caption.c (ReadCAPTIONImage): Assure that metrics are 167 initialized. 168 169 * magick/pixel_cache.c (DestroyThreadViewSet): Check if views 170 pointer is not null before destroying views. 171 172 * coders/xpm.c (ReadXPMImage): Properly detect the case where the 173 XPM colormap is not fully initialized. 174 175 * coders/pict.c (DecodeImage): Fix heap buffer over-reads. Fixes 176 oss-fuzz issue 20053 "graphicsmagick:coder_PICT_fuzzer: 177 Heap-buffer-overflow in ExpandBuffer" and oss-fuzz issue 20048 178 "graphicsmagick:coder_PICT_fuzzer: Heap-buffer-overflow in 179 DecodeImage". Both of these oss-fuzz issues appeared due to 180 recent changes since the last release. 181 182 * coders/meta.c (WriteMETAImage): Assure that 'iptc_offset' is 183 initialized and valid. 184 185 * coders/jpeg.c (ReadJPEGImage): Assure that evaluating the 186 embedded profile length does not suffer from undefined behavior. 187 188 2020-01-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 189 190 * magick/render.c (DrawImage): Add more MVG parser validations. 191 192 2020-01-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 193 194 * coders/histogram.c (WriteHISTOGRAMImage): Histogram coder was 195 relying on the previously removed '@' file inclusion feature to 196 insert the histogram comment text. Write a PseudoClass MIFF image 197 with RLE compression. Fixes SourceForge issue #622 "Histogram 198 produces incorrect color table attribute ". 199 200 * magick/pixel_cache.c (ModifyCache): Re-open the pixel cache if 201 the cache rows/columns do not match the owning image rows/columns. 202 203 * magick/transform.c (TransformImage): TransformImage now returns 204 a MagickPassFail return status value rather than void. 205 206 * coders/pict.c (ReadPICTImage): Fix some over-strict validations 207 which were preventing some PICT files which were previously read 208 successfully from being accepted. Fix problems which occurred when 209 the clipping rectangle changed the image size. Improve reading 210 embedded JPEG blobs. Now successfully reads all raster PICT files 211 I have available. 212 213 2020-01-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 214 215 * coders/pict.c (ReadPICTImage): Be more strict about PICT 216 rectangle by treating rectangle dimensions as if they are a 16-bit 217 signed type and not allowing negative values. Avoid GCC warnings 218 which sprung up similar to "warning: comparison is always false 219 due to limited range of data type". 220 221 2020-01-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 222 223 * coders/sfw.c (ReadSFWImage): Restore a DestroyImage() statement 224 which was accidentally deleted by recent edits. Fixes oss-fuzz 225 "Issue 19819 in oss-fuzz: graphicsmagick:coder_SFW_fuzzer: 226 Indirect-leak in AllocateImage". 227 228 * coders/png.c (WriteOneJNGImage): Detect when JPEG encoder has 229 failed, and throw exception. Fix image dimension limit 230 validations. Stop discarding exception report. Fixes SourceForge 231 bug #621 "Assertion in WriteBlob at magick/blob.c:4937" which was 232 reported by Suhwan Song. 233 234 * coders/pict.c (WritePICTImage): Eliminating small buffer overrun 235 when run-length encoding pixels. Fixes SourceForge bug #620 236 "heap-buffer-overflow in EncodeImage at coders/pict.c:1114" which 237 was reported by Suhwan Song. 238 239 * coders/logo.c (ReadLOGOImage): PATTERN error handling was 240 incomplete. Add appropriate error handling. 241 (ReadLOGOImage): Switch to using ConstituteTextureImage() rather 242 than TextureImage() since it is more appropriate for this purpose. 243 (ReadLOGOImage): Oops! Accidental change of behavior. When size 244 is not supplied, simply return the pattern image. 245 246 2020-01-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 247 248 * coders/*.c (ReadFOOImage): Stop image timer just before 249 returning from reader so that reported timings are correct when 250 used in the future. 251 252 2020-01-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 253 254 * magick/timer.c (StartTimer): Expose previously existing 255 StartTimer() function. 256 (StopTimer): Expose previously existing StartTimer() function. 257 258 * magick/constitute.c (WriteImage): Don't over-write time-stamp 259 when output is to INFO format. 260 261 2020-01-03 Fojtik Jaroslav <JaFojtik@seznam.cz> 262 263 * VisualMagick\configure\configure.exe: Should not depend on mfcr90.dll. 264 It is too bad when end user cannot run this tool because of missing DLL. 265 266 * VisualMagick\configure\configure.cpp Make speed optimisation as default 267 option. 268 269 * VisualMagick\configure\configure.vcproj Give different filename to debug 270 build to avoid accidental committing debug build to repository. 271 272 2020-01-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> 273 274 * coders/dpx.c (GenerateDPXTimeStamp): Use reentrant localtime_r() 275 function if it is available. 276 277 * magick/log.c (LogMagickEventList): Use reentrant 278 localtime_r() function if it is available. 279 280 * coders/cineon.c (GenerateCineonTimeStamp): Use reentrant 281 localtime_r() function if it is available. 282 283 * coders/mat.c (WriteMATLABImage): Use reentrant localtime_r() 284 function if it is available. 285 286 * coders/pdf.c (WritePDFImage): Use reentrant localtime_r() 287 function if it is available. 288 289 * coders/ps.c (WritePSImage): Use reentrant ctime_r() function 290 if it is available. 291 292 * coders/ps2.c (WritePS2Image): Use reentrant ctime_r() function 293 if it is available. 294 295 * coders/ps3.c (WritePS3Image): Use reentrant ctime_r() function 296 if it is available. 297 298 * configure.ac: Test for getpwnam_r(). 299 300 * magick/utility.c (ExpandFilename): Use reentrant getpwnam_r() 301 function if it is available. 302 303 * magick/magick.c (InitializeMagickSignalHandlers): Use the normal 304 termination signal handler for SIGXCPU and SIGXFSZ so that ulimit 305 or setrlimit(2) may be used to apply CPU (RLIMIT_CPU) and output 306 file size (RLIMIT_FSIZE) limits with the normal cleanup, and 307 without dumping core. Note that any output files currently being 308 written may be truncated and files being written by external 309 programs (e.g. Ghostscript) might be left behind unless they are 310 to a temporary file assigned by GraphicsMagick. 311 312 * coders/xpm.c (ReadXPMImage): Promote a color-lookup 313 warning to an error. 314 315 * coders/xc.c (ReadXCImage): Promote a color-lookup 316 warning to an error. 317 318 * coders/null.c (ReadNULLImage): Promote a color-lookup 319 warning to an error. 320 321 * Makefile.am: Rotate ChangeLogs for the new year. 322 323 * coders/gradient.c (ReadGRADIENTImage): Promote a color-lookup 324 warning to an error.