Hello community,

here is the log from the commit of package bash for openSUSE:Factory checked in 
at 2018-07-17 09:36:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bash (Old)
 and      /work/SRC/openSUSE:Factory/.bash.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bash"

Tue Jul 17 09:36:24 2018 rev:148 rq:621861 version:4.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/bash/bash.changes        2018-06-13 
15:13:07.430398490 +0200
+++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes   2018-07-17 
09:36:27.530557638 +0200
@@ -1,0 +2,5 @@
+Sat Jul  7 05:03:48 UTC 2018 - [email protected]
+
+- Add bash-memmove.patch to make bash.html build reproducible (boo#1100488)
+
+-------------------------------------------------------------------
@@ -4 +9 @@
-- In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3) (boo#1095670) 
+- In patch bash-4.4.dif avoid setgroups(2) but use initgroups(3) (boo#1095670) 

New:
----
  bash-memmove.patch

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

Other differences:
------------------
++++++ bash.spec ++++++
--- /var/tmp/diff_new_pack.IanlB6/_old  2018-07-17 09:36:28.482554319 +0200
+++ /var/tmp/diff_new_pack.IanlB6/_new  2018-07-17 09:36:28.482554319 +0200
@@ -83,6 +83,7 @@
 Patch48:        bash-4.3-extra-import-func.patch
 # PATCH-EXTEND-SUSE Allow root to clean file system if filled up
 Patch49:        bash-4.3-pathtemp.patch
+Patch50:        bash-memmove.patch
 %global         _sysconfdir /etc
 %global         _incdir     %{_includedir}
 %global         _ldldir     /%{_lib}/bash
@@ -224,6 +225,7 @@
 %patch48 -b .eif
 %endif
 %patch49 -p0 -b .pthtmp
+%patch50 -p1 -b .mmv
 %patch0  -p0 -b .0
 # This has to be always the same version as included in the bash its self
 rl1=($(sed -rn '/RL_READLINE_VERSION/p' lib/readline/readline.h))

++++++ bash-memmove.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2018-07-07

strcpy can cause corruption when working on overlapping strings
so we use memmove instead that handles this case correctly

Index: bash-4.4/support/man2html.c
===================================================================
--- bash-4.4.orig/support/man2html.c
+++ bash-4.4/support/man2html.c
@@ -1992,7 +1993,7 @@ unescape (char *c)
        while (i < l && c[i]) {
                if (c[i] == '\a') {
                        if (c[i+1])
-                               strcpy(c + i, c + i + 1);       /* should be 
memmove */
+                               memmove(c + i, c + i + 1, strlen(c + i));
                        else {
                                c[i] = '\0';
                                break;

Reply via email to