Package: recoverjpeg
Version: 1.1.1-1
Severity: important
Tags: patch

On a powerpc platform, recoverjpeg always shows the help regardless of
whether a file has been specified, and so it's completely unusable.

This is because the getopt() return value is incorrectly assigned to a
"char" variable, which is unsigned on powerpc, and can never equal -1.

Patch:

--- recoverjpeg-1.1.1/recoverjpeg.c     2005-04-05 15:42:24.000000000 +0000
+++ recoverjpeg.jim/recoverjpeg.c       2006-12-27 19:47:15.000000000 +0000
@@ -205,7 +205,7 @@
   int page_size;
   off_t offset;
   unsigned char *format;
-  char c;
+  int c;
 
   read_size = 128*1024*1024;
   block_size = 512;



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.4
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages recoverjpeg depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries

recoverjpeg recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to