File GraphicsMagick-CVE-2017-5511.patch of Package GraphicsMagick.7782

Index: GraphicsMagick-1.3.21/coders/psd.c
===================================================================
--- GraphicsMagick-1.3.21.orig/coders/psd.c	2017-01-24 15:18:19.833465152 +0100
+++ GraphicsMagick-1.3.21/coders/psd.c	2017-01-24 15:19:15.682265625 +0100
@@ -990,7 +990,7 @@ static Image *ReadPSDImage(const ImageIn
                       combinedlength += length + 4;  /* +4 for length */
 
                       /* layer name */
-                      length=ReadBlobByte(image);
+                      length=(unsigned char)ReadBlobByte(image);
                       for (j=0; j < (long) (length); j++)
                         layer_info[i].name[j] = ReadBlobByte(image);
                       layer_info[i].name[j] = 0;  /* zero term */
openSUSE Build Service is sponsored by