Hi, upstream patch contains unrelated code refactoring (deduplication of the _TargaInfo structure). I have trimmed it down so it contains only necessary changes, you can find the modified patch in attachement (it's only a few lines long).
cheers, Hugo -- Hugo Lefeuvre (hle) | www.owl.eu.com RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C
Subject: WriteTGAImage(): reject image rows/columns larger than 65535 Author: Bob Friesenhahn <bfrie...@graphicsmagick.org>, Hugo Lefeuvre <h...@debian.org> Origin: http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/15d1b5fd003b Bug: https://sourceforge.net/p/graphicsmagick/bugs/583/ --- a/coders/tga.c 2018-12-26 14:54:50.250695800 +0100 +++ b/coders/tga.c 2018-12-26 14:54:50.250695800 +0100 @@ -949,6 +949,10 @@ targa_info.colormap_length=(unsigned short) image->colors; targa_info.colormap_size=24; } + + if ((image->columns > 65535) || (image->rows > 65535)) + ThrowWriterException(CoderError,ImageColumnOrRowSizeIsNotSupported, image); + /* Write TGA header. */
signature.asc
Description: PGP signature