Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package lpr

Current version in testing has an integer overflow bug when checking for free
blocks in the spool directory. When the spool directory free space is larger
than 1TB, it starts to erroneously report "Not enough space".

This was reported in #769925 (important).


diff -Nru lpr-2008.05.17+nmu1/debian/changelog lpr-2008.05.17.1/debian/changelog
--- lpr-2008.05.17+nmu1/debian/changelog        2011-04-22 09:23:06.000000000 
-0500
+++ lpr-2008.05.17.1/debian/changelog   2014-11-20 21:37:57.000000000 -0600
@@ -1,3 +1,11 @@
+lpr (1:2008.05.17.1) unstable; urgency=medium
+
+  * Acknowledge NMU. Thank you. (closes: #544552)
+  * Fix an integer overflow in chksize() function on systems with > 1TB
+    spool partition. (closes: #769925)
+
+ -- Adam Majer <ad...@zombino.com>  Thu, 20 Nov 2014 21:33:12 -0600
+
 lpr (1:2008.05.17+nmu1) unstable; urgency=low
 
   * Non-maintainer upload to fix a 1.5 years old pending bug.
diff -Nru lpr-2008.05.17+nmu1/lpd/recvjob.c lpr-2008.05.17.1/lpd/recvjob.c
--- lpr-2008.05.17+nmu1/lpd/recvjob.c   2005-01-28 22:40:20.000000000 -0600
+++ lpr-2008.05.17.1/lpd/recvjob.c      2014-11-20 21:46:02.000000000 -0600
@@ -1,4 +1,4 @@
-/*     $OpenBSD: recvjob.c,v 1.23 2003/06/02 23:36:53 millert Exp $    */
+/*     $OpenBSD: recvjob.c,v 1.24 2008/09/02 00:14:23 deraadt Exp $    */
 /*     $NetBSD: recvjob.c,v 1.14 2001/12/04 22:52:44 christos Exp $    */
 
 /*
@@ -41,7 +41,7 @@
 #if 0
 static const char sccsid[] = "@(#)recvjob.c    8.2 (Berkeley) 4/27/95";
 #else
-static const char rcsid[] = "$OpenBSD: recvjob.c,v 1.23 2003/06/02 23:36:53 
millert Exp $";
+static const char rcsid[] = "$OpenBSD: recvjob.c,v 1.24 2008/09/02 00:14:23 
deraadt Exp $";
 #endif
 #endif /* not lint */
 
@@ -298,9 +298,11 @@
 static int
 chksize(int size)
 {
-       int spacefree;
+       int64_t spacefree;
        struct statfs sfb;
 
+       if (size <= 0)
+               return (0);
        if (statfs(".", &sfb) < 0) {
                syslog(LOG_ERR, "%s: %m", "statfs(\".\")");
                return (1);


unblock lpr/1:2008.05.17.1


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to