Blame SOURCES/0001-libcupsfilters-Fix-page-range-like-10-in-pdftopdf-fi.patch

2a7397
From 022c34fedb66f706b2ab82d7506d5b5b1fa18e1f Mon Sep 17 00:00:00 2001
2a7397
From: Bryan Mason <bmason@redhat.com>
2a7397
Date: Fri, 16 Jul 2021 11:19:42 -0700
2a7397
Subject: [PATCH] libcupsfilter: Fix page range like "10-" in pdftopdf()
2a7397
 filter function
2a7397
2a7397
---
2a7397
 filter/pdftopdf/pdftopdf.cc | 2 +-
2a7397
 1 file changed, 1 insertion(+), 1 deletion(-)
2a7397
2a7397
diff --git a/filter/pdftopdf/pdftopdf.cc b/filter/pdftopdf/pdftopdf.cc
2a7397
index 5725e199..979644f1 100644
2a7397
--- a/filter/pdftopdf/pdftopdf.cc
2a7397
+++ b/filter/pdftopdf/pdftopdf.cc
2a7397
@@ -256,7 +256,7 @@ static void parseRanges(const char *range,IntervalSet &ret) // {{{
2a7397
         } else {
2a7397
           upper=strtol(range,(char **)&range,10);
2a7397
           if (upper>=2147483647) {
2a7397
-            ret.add(1);
2a7397
+            ret.add(lower);
2a7397
           } else {
2a7397
             ret.add(lower,upper+1);
2a7397
           }
2a7397
-- 
2a7397
2.31.1
2a7397