]> granicus.if.org Git - imagemagick/commitdiff
Corrected typecast
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 14 Jan 2018 21:11:53 +0000 (22:11 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 14 Jan 2018 21:12:14 +0000 (22:12 +0100)
Credit to OSS-Fuzz

coders/dcm.c

index 4ee147328ad2878cb246ee8303dc2f97655d8c36..40f1568e67575787b819064b6e3124cb175a79cf 100644 (file)
@@ -3301,7 +3301,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                 sequence=MagickTrue;
                 continue;
               }
-    if ((unsigned int) ((group << 16) | element) == 0xFFFEE0DD)
+    if ((((unsigned int) group << 16) | element) == 0xFFFEE0DD)
       {
         if (data != (unsigned char *) NULL)
           data=(unsigned char *) RelinquishMagickMemory(data);