Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package x3270 for openSUSE:Factory checked 
in at 2021-02-15 23:15:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/x3270 (Old)
 and      /work/SRC/openSUSE:Factory/.x3270.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "x3270"

Mon Feb 15 23:15:58 2021 rev:42 rq:871353 version:3.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/x3270/x3270.changes      2020-11-11 
20:46:26.663649618 +0100
+++ /work/SRC/openSUSE:Factory/.x3270.new.28504/x3270.changes   2021-02-15 
23:18:02.203551416 +0100
@@ -1,0 +2,8 @@
+Thu Feb 11 22:21:36 UTC 2021 - Mark Post <[email protected]>
+
+- Added x3270-handle-missing-font.patch (bsc#1177104)
+  In some cases when fonts are present locally but are not present
+  in the fontpath, x3270 can crash due to a segfault caused by
+  XLoadQueryFont() returning NULL in lff_single().
+
+-------------------------------------------------------------------

New:
----
  x3270-handle-missing-font.patch

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

Other differences:
------------------
++++++ x3270.spec ++++++
--- /var/tmp/diff_new_pack.nBtf8S/_old  2021-02-15 23:18:02.879552426 +0100
+++ /var/tmp/diff_new_pack.nBtf8S/_new  2021-02-15 23:18:02.883552432 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package x3270
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2016,2020,2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,7 @@
 Source1:        http://download.sourceforge.net/%{name}/x026-%{_x026ver}.tgz
 Source2:        x3270.desktop
 Patch0:         mknod.patch
+Patch1:         x3270-handle-missing-font.patch
 Patch100:       usr_local_bin.patch
 Patch102:       x026-offset.diff
 Patch105:       x3270-missing-include.patch
@@ -103,6 +104,7 @@
 # -a fter changing into all3270, expand sources
 %setup -q -n suite3270-%{version} -a1
 %patch0
+%patch1
 %patch100
 %patch102
 %patch105 -p1

++++++ x3270-handle-missing-font.patch ++++++
--- x3270/screen.c      2020-10-30 13:35:58.238416347 +0100
+++ x3270/screen.c      2020-10-30 13:39:12.721353850 +0100
@@ -4686,7 +4686,9 @@
        }
     }
 
-    g = XLoadQueryFont(display, best);
+    if ((g = XLoadQueryFont(display, best)) == NULL) {
+        return xs_buffer("Font %s could not be loaded", best);
+    }
     set_font_globals(g, /*name*/best, best, g->fid, is_dbcs);
     return NULL;
 }

Reply via email to