GraphicsMagick: Add a comment about a purpose of passing arbitra...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.8065.1691590751.8047.graphicsmagick-commit@lists.sourceforge.net>
changeset 7e93fca0979f in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=7e93fca0979f
summary: Add a comment about a purpose of passing arbitrary header size >=64.

diffstat:

 coders/bmp.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r ce684ca1ae8e -r 7e93fca0979f coders/bmp.c
--- a/coders/bmp.c	Wed Aug 09 16:02:19 2023 +0200
+++ b/coders/bmp.c	Wed Aug 09 16:18:34 2023 +0200
@@ -723,10 +723,14 @@
             {
             case 40:
             case 56:
+            case 64:
             case 78:
             case 108: break;
             default: if (bmp_info.size < 64)
                 ThrowBMPReaderException(CorruptImageError, NonOS2HeaderSizeError, image);
+                        /* A value larger than 64 indicates a later version of the OS/2 BMP format.
+                           .... as far as OS/2 development caesed we could consider to
+                           close this Trojan's horse window in future. */
               break;
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.