Package: graphicsmagick
Version: 1.3.5-5
Severity: normal

When the image is smaller than the convolution matrix, gm crashes:

$ valgrind gm convert -convolve 1,1,1,1,1,1,1,1,1 xc:white ppm:- > /dev/null
==1255== Memcheck, a memory error detector.
==1255== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==1255== Using LibVEX rev 1884, a library for dynamic binary translation.
==1255== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==1255== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation 
framework.
==1255== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==1255== For more details, rerun with: -v
==1255==
==1255== Invalid read of size 4
==1255==    at 0x486B047: MogrifyImage (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486FCA6: MogrifyImages (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x4885E87: ConvertImageCommand (in 
/usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486A8E4: MagickCommand (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486AA9B: GMCommand (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x1086B1: main (gm.c:61)
==1255==  Address 0x1990 is not stack'd, malloc'd or (recently) free'd
==1255==
==1255== Process terminating with default action of signal 11 (SIGSEGV)
==1255==  Access not within mapped region at address 0x1990
==1255==    at 0x486B047: MogrifyImage (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486FCA6: MogrifyImages (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x4885E87: ConvertImageCommand (in 
/usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486A8E4: MagickCommand (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x486AA9B: GMCommand (in /usr/lib/libGraphicsMagick.so.3.0.5)
==1255==    by 0x1086B1: main (gm.c:61)
==1255==  If you believe this happened as a result of a stack overflow in your
==1255==  program's main thread (unlikely but possible), you can try to increase
==1255==  the size of the main thread stack using the --main-stacksize= flag.
==1255==  The main thread stack size used in this run was 8388608.
==1255==
==1255== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 59 from 1)
==1255== malloc/free: in use at exit: 102,768 bytes in 2,640 blocks.
==1255== malloc/free: 2,716 allocs, 76 frees, 274,225 bytes allocated.
==1255== For counts of detected errors, rerun with: -v
==1255== searching for pointers to 2,640 not-freed blocks.
==1255== checked 597,704 bytes.
==1255==
==1255== LEAK SUMMARY:
==1255==    definitely lost: 0 bytes in 0 blocks.
==1255==      possibly lost: 0 bytes in 0 blocks.
==1255==    still reachable: 102,768 bytes in 2,640 blocks.
==1255==         suppressed: 0 bytes in 0 blocks.
==1255== Rerun with --leak-check=full to see details of leaked memory.
Segmentation fault


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages graphicsmagick depends on:
ii  libbz2-1.0             1.0.5-3           high-quality block-sorting file co
ii  libc6                  2.9-23            GNU C Library: Shared libraries
ii  libfreetype6           2.3.9-5           FreeType 2 font engine, shared lib
ii  libgomp1               4.4.1-1           GCC OpenMP (GOMP) support library
ii  libgraphicsmagick3     1.3.5-5           format-independent image processin
ii  libice6                2:1.0.5-1         X11 Inter-Client Exchange library
ii  libjasper1             1.900.1-6         The JasPer JPEG-2000 runtime libra
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii liblcms1 1.18.dfsg-1 Color management library
ii  libpng12-0             1.2.38-1          PNG library - runtime
ii  libsm6                 2:1.1.0-2         X11 Session Management library
ii  libtiff4               3.8.2-13          Tag Image File Format (TIFF) libra
ii  libwmf0.2-7            0.2.8.4-6.1       Windows metafile conversion librar
ii  libx11-6               2:1.2.2-1         X11 client-side library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxml2                2.7.3.dfsg-2      GNOME XML library
ii  zlib1g                 1:1.2.3.3.dfsg-14 compression library - runtime

graphicsmagick recommends no packages.

Versions of packages graphicsmagick suggests:
ii  graphicsmagick-dbg            1.3.5-5    format-independent image processin

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to