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

Bug#162691: md5sum from dpkg generates incorrect output for files 2^31 or larger



Package: dpkg

/usr/bin/md5sum from base/dpkg has incorrect output for files 2^31 or larger
in size.  At least for a file of all zeroes (didn't test whether content
mattered).

Steps to demonstrate error:

# Create file of all zeroes that contains 2^31 - 1 = 2147483647 bytes
dd if=/dev/zero of=bigfile bs=1MB count=2147
dd if=/dev/zero bs=1 count=483647 >>bigfile

#produce md5sum for this file
md5sum bigfile
b3dc5e51b0698ddf18d48bbf16c1153f   bigfile

#now create a file that is 2^31 in size
dd if=/dev/zero bs=1 count=1 >>bigfile

md5sum bigfile
bigfile: Success

#run md5sum.texutils on bigfile from the coreutils
md5sum.textutils bigfile
b3dc5e51b0698ddf18d48bbf16c1153f   bigfile

Running Debian unstable on x86 platform
dpkg = 1.10.9
coreutils = 4.5.1-2

Kevin




Reply to: