[Pkg-gnupg-maint] Bug#503853: gnupg: Sometimes hangs on truncated binary input
Daniel Leidert
daniel.leidert at wgdd.de
Fri May 29 12:54:23 UTC 2009
Hi,
The issue has been tracked down by the upstream authors. It is specific to architectures,
where ULONG_MAX != 0xffffffff (e.g. amd64). A loop is entered and never left.
It is caused by this test in g10/parse-packet.c (parse):
if (pktlen == 0xffffffff) {...}
A simple fix should be to include limits.h and use ULONG_MAX in the test. IMO this is
a quick and dirty fix suitable for Debian.
Regards, Daniel
More information about the Pkg-gnupg-maint
mailing list