[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#679772: [optimize2bw] segmentation fault when using denoise on amd64



Package: exactimage
Version: 0.8.5-4
Severity: normal
Tags: patch

To reproduce:

$ convert -size 100x100 xc:white white.jpg
$ optimize2bw -n -i white.jpg -o test.tiff

Backtrace

#0  operator() (gross=<optimized out>, inner=false, it2=0x75faa4 "\001", 
    it=0x76f5d4 
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 
y=1, x=0, this=<synthetic pointer>) at lib/Colorspace.cc:217
#1  colorspace_gray8_denoise_neighbours (image=..., gross=false) at 
lib/Colorspace.cc:265
#2  0x000000000040f5f9 in main (argc=<optimized out>, argv=<optimized out>) at 
frontends/optimize2bw.cc:197


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-3-amd64

Debian Release: wheezy/sid
  500 unstable        www.deb-multimedia.org 
  500 unstable        http.debian.net 
  500 testing         http.debian.net 
    1 experimental    www.deb-multimedia.org 
    1 experimental    http.debian.net 

--- Package information. ---
Depends              (Version) | Installed
==============================-+-==============
libc6                 (>= 2.4) | 
libexpat1           (>= 2.0.1) | 
libfreetype6        (>= 2.2.1) | 
libgcc1           (>= 1:4.1.1) | 
libgif4             (>= 4.1.4) | 
libgomp1            (>= 4.2.1) | 
libilmbase6         (>= 1.0.1) | 
libjasper1                     | 
libjpeg8               (>= 8c) | 
libopenexr6         (>= 1.6.1) | 
libpng12-0       (>= 1.2.13-4) | 
libstdc++6            (>= 4.6) | 
libtiff4         (>> 3.9.5-3~) | 
zlib1g            (>= 1:1.1.4) | 


Recommends      (Version) | Installed
=========================-+-===========
edisplay                  | 0.8.7-1


Package's Suggests field is empty.
Description: Fix denoise crash on 64-bit systems
Author: René Rebe <rene@exactcode.de>

---
diff --git a/lib/Colorspace.cc b/lib/Colorspace.cc
index ee517092ea6d93e90df8257133fda56bc6025b98..0b7e7cbefdb76503570e5761eb7e099ae7d75717 100644
--- a/lib/Colorspace.cc
+++ b/lib/Colorspace.cc
@@ -198,7 +198,7 @@ void colorspace_gray8_denoise_neighbours (Image &image, bool gross)
   struct compare_and_set
   {
     const Image& image;
-    const unsigned int stride;
+    const long stride;
     compare_and_set (const Image& _image)
       : image(_image), stride (image.stride())
     {

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: