The following commit has been merged in the sid branch: commit d240eaf0e62b370d85b956df8e21ce38577fee0e Author: Guillem Jover <guil...@debian.org> Date: Sat Jun 9 16:03:45 2012 +0200
libdpkg: Check correctly for out of range negative field width values Use INT_MIN instead of INT_MAX when checking for negative out of range values. Regression introduced in commit 2bf4b48a9a6f7ddf854179b4b74013534e4594b9. Closes: #676796 diff --git a/debian/changelog b/debian/changelog index c455d30..af66871 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dpkg (1.16.4.2) UNRELEASED; urgency=low + + * Check correctly for out of range negative field width values in dpkg-query + --show format strings. Regression introduced in 1.16.4. Closes: #676796 + + -- Guillem Jover <guil...@debian.org> Sat, 09 Jun 2012 16:10:33 +0200 + dpkg (1.16.4.1) unstable; urgency=low * Fix explicit file trigger activation. Regression introduced in 1.16.4. diff --git a/lib/dpkg/pkg-format.c b/lib/dpkg/pkg-format.c index 96185c9..338c206 100644 --- a/lib/dpkg/pkg-format.c +++ b/lib/dpkg/pkg-format.c @@ -86,7 +86,7 @@ parsefield(struct pkg_format_node *cur, const char *fmt, const char *fmtend) *endptr); return false; } - if (w < INT_MAX || w > INT_MAX || errno == ERANGE) { + if (w < INT_MIN || w > INT_MAX || errno == ERANGE) { fprintf(stderr, _("field width is out of range\n")); return false; } -- dpkg's main repository -- To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org