File ImageMagick-CVE-2019-7396.patch of Package ImageMagick.30356

diff --git a/coders/sixel.c b/coders/sixel.c
index a8a658f352..ae32db8749 100644
--- a/coders/sixel.c
+++ b/coders/sixel.c
@@ -1057,6 +1057,7 @@ static Image *ReadSIXELImage(const ImageInfo *image_info,ExceptionInfo *exceptio
   if (sixel_decode(image,(unsigned char *) sixel_buffer,&sixel_pixels,&image->columns,&image->rows,&sixel_palette,&image->colors,exception) == MagickFalse)
     {
       sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer);
+      sixel_pixels=(unsigned char *) RelinquishMagickMemory(sixel_pixels);
       ThrowReaderException(CorruptImageError,"CorruptImage");
     }
   sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer);

openSUSE Build Service is sponsored by