Package: imagemagick Version: 6:6.0.6.2-2.2 Severity: normal
mogrify can loose data if interrupted: 1. Should make backup file 2. Should finish writting if interrupting Create a reasonable sized file (~1Mb) and run the script until mogrify: Corrupt JPEG data: premature end of data segment. appears on the output. Dirty script to uncover the bug: #!/usr/bin/perl use Time::HiRes qw( usleep ); use POSIX; $file = "rabo.jpg"; $size=(stat($file))[7]; $i=0; while( $size > 0 && $i < 100000 ){ if($p=fork) { usleep(rand(10000)); for($i=0;$i<10000;$i++) { kill(15,$p); } } else { usleep(rand(10000)); system("mogrify -scale 1024 $file") or die "mog"; exit; } $i++; } print "Done $i $size.\n"; -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=es_ES (charmap=ISO-8859-1) Versions of packages imagemagick depends on: ii libmagick6 6:6.0.6.2-2.2 Image manipulation library -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]