Bug#876565: ImageMagick crashes (assertion failure) when opening a malformed image file

2023-08-31 Thread Peter Hull
The file attached by Evgeny Kapun does not appear to crash identify any more.

$ identify image.png
image.png PNG 16x16 16x16+0+0 8-bit sRGB 1180B 0.000u 0:00.014

Possibly this bug has been fixed in the meantime.

-- Package-specific info:
ImageMagick program version
---
animate:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
compare:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
convert:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
composite:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
conjure:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
display:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
identify:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
import:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
mogrify:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
montage:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
stream:  ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.90.1-microsoft-standard-WSL2 (SMP w/12 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages imagemagick-6.q16 depends on:
ii  hicolor-icon-theme 0.17-2
ii  libc6  2.36-9+deb12u1
ii  libmagickcore-6.q16-6  8:6.9.11.60+dfsg-1.6
ii  libmagickwand-6.q16-6  8:6.9.11.60+dfsg-1.6

Versions of packages imagemagick-6.q16 recommends:
ii  ghostscript  10.0.0~dfsg-11+deb12u1
ii  libmagickcore-6.q16-6-extra  8:6.9.11.60+dfsg-1.6
ii  netpbm   2:11.01.00-2

Versions of packages imagemagick-6.q16 suggests:
pn  autotrace   
pn  cups-bsd | lpr | lprng  
ii  curl7.88.1-10+deb12u1
pn  enscript
pn  ffmpeg  
pn  gimp
pn  gnuplot 
pn  grads   
pn  graphviz
ii  groff-base  1.22.4-10
pn  hp2xx   
pn  html2ps 
pn  imagemagick-doc 
pn  libwmf-bin  
pn  mplayer 
pn  povray  
pn  radiance
pn  sane-utils  
pn  texlive-base-bin
pn  transfig
pn  ufraw-batch 
pn  xdg-utils   

-- no debconf information



Bug#876565: ImageMagick crashes (assertion failure) when opening a malformed image file

2017-09-23 Thread Evgeny Kapun

Package: imagemagick-6.q16
Version: 8:6.9.7.4+dfsg-16

An image that causes the crash is attached.

$ identify image.png
identify: ../../magick/quantum.c:216: DestroyQuantumInfo: Assertion 
`quantum_info != (QuantumInfo *) NULL' failed.
Aborted