Bug#153620: md5sum: MD5 file parser problems
Package: dpkg
Version: 1.10.4
Severity: normal
Tags: patch
Trying to check signed MD5SUMS from cdimage.d.o gives me the following
error:
md5sum -vc MD5SUMS
debian-22r7-alpha-binary-1.iso OK
debian-22r7-alpha-binary-1_NONUS.iso OK
debian-22r7-alpha-binary-2.iso OK
debian-22r7-alpha-binary-3.iso OK
debian-22r7-alpha-binan md5sum: can't open debian-22r7-alpha-binan
FAILED
md5sum: 1 of 5 file(s) failed MD5 check
The following patch fixes the parsing issue of MD5SUMS:
--- md5sum.c.orig Mon May 20 07:56:01 2002
+++ md5sum.c Fri Jul 19 23:46:25 2002
@@ -222,6 +222,11 @@
if (fgets(buf, sizeof(buf), fp) == NULL)
return -1;
+ /* check if start of buf looks like a digest */
+ for (i = 0; i < 32; i++)
+ if (hex_digit(buf[i]) == -1)
+ return 0;
+
memcpy(digest, p, 32);
p += 32;
if (*p++ != ' ')
-- System Information:
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux moros 2.4.18-p020508 #1 SMP Thu May 23 13:24:21 CEST 2002 ia64
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg depends on:
ii dselect 1.10.4 a user tool to manage Debian packa
ii libc6.1 2.2.5-6 GNU C Library: Shared libraries an
-- no debconf information
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
-- System Information:
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux moros 2.4.18-p020508 #1 SMP Thu May 23 13:24:21 CEST 2002 ia64
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg depends on:
ii dselect 1.10.4 a user tool to manage Debian packa
ii libc6.1 2.2.5-6 GNU C Library: Shared libraries an
-- no debconf information
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: