Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libqt5-qtbase for openSUSE:Factory 
checked in at 2022-04-14 17:23:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libqt5-qtbase (Old)
 and      /work/SRC/openSUSE:Factory/.libqt5-qtbase.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libqt5-qtbase"

Thu Apr 14 17:23:39 2022 rev:129 rq:969356 version:5.15.2+kde294

Changes:
--------
--- /work/SRC/openSUSE:Factory/libqt5-qtbase/libqt5-qtbase.changes      
2022-02-28 19:44:02.093951773 +0100
+++ /work/SRC/openSUSE:Factory/.libqt5-qtbase.new.1941/libqt5-qtbase.changes    
2022-04-14 17:23:41.079138504 +0200
@@ -1,0 +2,7 @@
+Fri Apr  8 14:06:22 UTC 2022 - Martin Li??ka <[email protected]>
+
+- Add mitigate-FORTIFY_SOURCE-3.patch that should mitigate
+  new -D_FORTIFY_SOURCE=3 level as analyzed in GCC bug:
+  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105078.
+
+-------------------------------------------------------------------

New:
----
  mitigate-FORTIFY_SOURCE-3.patch

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

Other differences:
------------------
++++++ libqt5-qtbase.spec ++++++
--- /var/tmp/diff_new_pack.KFYMXj/_old  2022-04-14 17:23:45.235143362 +0200
+++ /var/tmp/diff_new_pack.KFYMXj/_new  2022-04-14 17:23:45.243143371 +0200
@@ -61,6 +61,8 @@
 # PATCH-FIX-OPENSUSE
 Patch21:        0001-Don-t-white-list-recent-Mesa-versions-for-multithrea.patch
 Patch24:        fix-fixqt4headers.patch
+# PATCH-FIX-OPENSUSE -- Mitigate -D_FORTIFY_SOURCE=3 issue starting with GCC 
12 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105078)
+Patch25:        mitigate-FORTIFY_SOURCE-3.patch
 # patches 1000-2000 and above from upstream 5.15 branch #
 # patches 2000-3000 and above from upstream qt6/dev branch #
 # Not accepted yet, https://codereview.qt-project.org/c/qt/qtbase/+/255384

++++++ mitigate-FORTIFY_SOURCE-3.patch ++++++
From: Martin Li??ka <[email protected]>
Subject: Mitigate issue with -D_FORTIFY_SOURCE=3 seen with GCC 12

GCC upstream bug for it:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105078

diff --git a/src/corelib/tools/qarraydata.h b/src/corelib/tools/qarraydata.h
index dcd95924..d01739e7 100644
--- a/src/corelib/tools/qarraydata.h
+++ b/src/corelib/tools/qarraydata.h
@@ -42,6 +42,7 @@
 
 #include <QtCore/qrefcount.h>
 #include <string.h>
+#include <cstdint>
 
 QT_BEGIN_NAMESPACE
 
@@ -58,14 +59,14 @@ struct Q_CORE_EXPORT QArrayData
     {
         Q_ASSERT(size == 0
                 || offset < 0 || size_t(offset) >= sizeof(QArrayData));
-        return reinterpret_cast<char *>(this) + offset;
+        return reinterpret_cast<void *> (reinterpret_cast<uintptr_t>(this) + 
offset);
     }
 
     const void *data() const
     {
         Q_ASSERT(size == 0
                 || offset < 0 || size_t(offset) >= sizeof(QArrayData));
-        return reinterpret_cast<const char *>(this) + offset;
+        return reinterpret_cast<void *> (reinterpret_cast<uintptr_t>(this) + 
offset);
     }
 
     // This refers to array data mutability, not "header data" represented by

Reply via email to