aboutsummaryrefslogtreecommitdiffstats
path: root/main/cups/CVE-2019-8842.patch
blob: 2e1a212239ac7cc2b4bcb2e9d9e9d4f7f41b6f22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cups/ipp.c b/cups/ipp.c
index b0762fd..dba4f31 100644
--- a/cups/ipp.c
+++ b/cups/ipp.c
@@ -2960,7 +2960,7 @@ ippReadIO(void       *src,		/* I - Data source */
             * Read 32-bit "extension" tag...
             */
 
-	    if ((*cb)(src, buffer, 4) < 1)
+	    if ((*cb)(src, buffer, 4) < 4)
 	    {
 	      DEBUG_puts("1ippReadIO: Callback returned EOF/error");
 	      _cupsBufferRelease((char *)buffer);