Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qpdf for openSUSE:Factory checked in 
at 2022-01-13 00:22:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qpdf (Old)
 and      /work/SRC/openSUSE:Factory/.qpdf.new.1892 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qpdf"

Thu Jan 13 00:22:04 2022 rev:58 rq:945525 version:10.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/qpdf/qpdf.changes        2022-01-07 
12:45:24.963805245 +0100
+++ /work/SRC/openSUSE:Factory/.qpdf.new.1892/qpdf.changes      2022-01-13 
00:22:08.299920214 +0100
@@ -1,0 +2,5 @@
+Mon Jan 10 21:58:24 UTC 2022 - Dirk M??ller <dmuel...@suse.com>
+
+- add fix-signedness-warning.patch (build for aarch64) 
+
+-------------------------------------------------------------------

New:
----
  fix-signedness-warning.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qpdf.spec ++++++
--- /var/tmp/diff_new_pack.4o69N8/_old  2022-01-13 00:22:09.447921041 +0100
+++ /var/tmp/diff_new_pack.4o69N8/_new  2022-01-13 00:22:09.451921043 +0100
@@ -28,6 +28,7 @@
 Source1:        
https://github.com/qpdf/qpdf/releases/download/release-qpdf-%{version}/qpdf-%{version}.tar.gz.asc
 Source2:        qpdf.keyring
 Patch1:         build-without-pdf.patch
+Patch2:         
https://github.com/qpdf/qpdf/pull/605.patch#/fix-signedness-warning.patch
 BuildRequires:  gcc-c++
 BuildRequires:  ghostscript
 BuildRequires:  libjpeg8-devel

++++++ fix-signedness-warning.patch ++++++
>From d7ab3b42b3c7278ddf08c22676cd544ceb96c51c Mon Sep 17 00:00:00 2001
From: Jay Berkenbilt <e...@ql.org>
Date: Mon, 10 Jan 2022 11:52:07 -0500
Subject: [PATCH] Fix signed/unsigned char warning (fixes #604)

---
 libqpdf/QPDFTokenizer.cc | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc
index 4217575c1..f4439fd1a 100644
--- a/libqpdf/QPDFTokenizer.cc
+++ b/libqpdf/QPDFTokenizer.cc
@@ -719,7 +719,7 @@ QPDFTokenizer::findEI(PointerHolder<InputSource> input)
                 for (std::string::iterator iter = value.begin();
                      iter != value.end(); ++iter)
                 {
-                    signed char ch = *iter;
+                    char ch = *iter;
                     if (((ch >= 'a') && (ch <= 'z')) ||
                         ((ch >= 'A') && (ch <= 'Z')) ||
                         (ch == '*'))
@@ -729,10 +729,11 @@ QPDFTokenizer::findEI(PointerHolder<InputSource> input)
                         // alphabetic characters.
                         found_alpha = true;
                     }
-                    else if ((ch < 32) && (! isSpace(ch)))
+                    else if ((static_cast<signed char>(ch) < 32) &&
+                             (! isSpace(ch)))
                     {
-                        // ch is signed, so characters outside of
-                        // 7-bit will be < 0.
+                        // Compare ch as a signed char so characters
+                        // outside of 7-bit will be < 0.
                         found_non_printable = true;
                         break;
                     }

Reply via email to