Package: dictfmt
Version: 1.10.11.dfsg-2
Severity: normal

When re-sorting the index file in base64 mode, dictfmt overwrites  
size with offset. Attached patch fixes the issue.


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

Kernel: Linux 2.6.26.5 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dictfmt depends on:
ii  gawk                    1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii  libc6                   2.7-10           GNU C Library: Shared libraries

Versions of packages dictfmt recommends:
ii  dictzip                   1.10.11.dfsg-2 Compression utility for dictionary

dictfmt suggests no packages.

-- no debconf information

-- 
 -----------------------------------------------------------
| Radovan GarabĂ­k http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__    garabik @ kassiopeia.juls.savba.sk     |
 -----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
--- dictfmt.c-orig	2009-01-04 14:50:14.000000000 +0100
+++ dictfmt.c	2009-01-04 14:50:24.000000000 +0100
@@ -1513,7 +1513,7 @@
 	    }
 
 	    if (indexonly_base64){
-	       i_size = (int) b64_decode (offset);
+	       i_size = (int) b64_decode (size);
 	    }else{
 	       i_size = xatoi (size);
 	    }

Reply via email to