Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-09-07 11:23:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bash" Sat Sep 7 11:23:54 2019 rev:156 rq:725335 version:5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bash/bash.changes 2019-04-28 19:56:46.087032132 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.7948/bash.changes 2019-09-07 11:23:56.466507308 +0200 @@ -1,0 +2,11 @@ +Thu Aug 15 13:43:55 UTC 2019 - Dr. Werner Fink <wer...@suse.de> + +- Add official patch bash50-008 + When HISTSIZE is set to 0, history expansion can leave the history length + set to an incorrect value, leading to subsequent attempts to access invalid + memory. +- Add official patch bash50-009 + The history file reading code doesn't close the file descriptor open to + the history file when it encounters a zero-length file. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bash-5.0-patches.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-004 new/bash-5.0-patches/bash50-004 --- old/bash-5.0-patches/bash50-004 2019-04-20 20:30:41.000000000 +0200 +++ new/bash-5.0-patches/bash50-004 2019-04-23 15:00:01.888911384 +0200 @@ -17,7 +17,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500 +*** jobs.c 2018-12-06 11:44:34.000000000 -0500 --- jobs.c 2019-04-12 15:15:10.000000000 -0400 *************** *** 2489,2496 **** @@ -36,7 +36,7 @@ /* We don't want to wait indefinitely if we have stopped children. */ if (any_stopped == 0) { -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +*** patchlevel.h 2016-06-22 14:51:03.000000000 -0400 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 *************** *** 26,30 **** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-005 new/bash-5.0-patches/bash50-005 --- old/bash-5.0-patches/bash50-005 2019-04-20 20:30:53.000000000 +0200 +++ new/bash-5.0-patches/bash50-005 2019-04-23 15:00:01.900911158 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/command.h 2018-07-20 21:16:31.000000000 -0400 +*** command.h 2018-07-20 21:16:31.000000000 -0400 --- command.h 2019-02-20 11:09:36.000000000 -0500 *************** *** 187,190 **** @@ -25,7 +25,7 @@ + #define CMD_TRY_OPTIMIZING 0x8000 /* try to optimize this simple command */ /* What a command looks like. */ -*** ../bash-5.0-patched/builtins/evalstring.c 2018-12-26 11:19:21.000000000 -0500 +*** builtins/evalstring.c 2018-12-26 11:19:21.000000000 -0500 --- builtins/evalstring.c 2019-01-29 14:15:19.000000000 -0500 *************** *** 101,104 **** @@ -82,7 +82,7 @@ ! } #endif /* ONESHOT */ -*** ../bash-5.0-patched/execute_cmd.c 2018-12-05 09:05:14.000000000 -0500 +*** execute_cmd.c 2018-12-05 09:05:14.000000000 -0500 --- execute_cmd.c 2019-01-25 15:59:00.000000000 -0500 *************** *** 2768,2771 **** @@ -93,7 +93,7 @@ + second = command->value.Connection->second; if (ignore_return && second) -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +*** patchlevel.h 2016-06-22 14:51:03.000000000 -0400 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 *************** *** 26,30 **** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-006 new/bash-5.0-patches/bash50-006 --- old/bash-5.0-patches/bash50-006 2019-04-20 20:31:06.000000000 +0200 +++ new/bash-5.0-patches/bash50-006 2019-04-23 15:00:01.912910933 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/builtins/shopt.def 2018-10-05 14:49:02.000000000 -0400 +*** builtins/shopt.def 2018-10-05 14:49:02.000000000 -0400 --- builtins/shopt.def 2019-01-23 09:55:22.000000000 -0500 *************** *** 123,127 **** @@ -30,7 +30,7 @@ ! #if defined (SYSLOG_HISTORY) extern int syslog_history; #endif -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +*** patchlevel.h 2016-06-22 14:51:03.000000000 -0400 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 *************** *** 26,30 **** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-007 new/bash-5.0-patches/bash50-007 --- old/bash-5.0-patches/bash50-007 2019-04-20 20:31:17.000000000 +0200 +++ new/bash-5.0-patches/bash50-007 2019-04-23 15:00:01.924910708 +0200 @@ -16,7 +16,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500 +*** jobs.c 2018-12-06 11:44:34.000000000 -0500 --- jobs.c 2019-04-12 15:15:10.000000000 -0400 *************** *** 4838,4850 **** @@ -45,7 +45,7 @@ ! shell_pgrp = original_pgrp; } -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +*** patchlevel.h 2016-06-22 14:51:03.000000000 -0400 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 *************** *** 26,30 **** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-008 new/bash-5.0-patches/bash50-008 --- old/bash-5.0-patches/bash50-008 1970-01-01 01:00:00.000000000 +0100 +++ new/bash-5.0-patches/bash50-008 2019-08-14 20:49:28.000000000 +0200 @@ -0,0 +1,68 @@ + BASH PATCH REPORT + ================= + +Bash-Release: 5.0 +Patch-ID: bash50-008 + +Bug-Reported-by: Michael Albinus <michael.albi...@gmx.de> +Bug-Reference-ID: <87bm36k3kz....@gmx.de> +Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-02/msg00111.html + +Bug-Description: + +When HISTSIZE is set to 0, history expansion can leave the history length +set to an incorrect value, leading to subsequent attempts to access invalid +memory. + +Patch (apply with `patch -p0'): + +*** ../bash-5.0-patched/bashhist.c 2018-07-05 22:41:14.000000000 -0400 +--- bashhist.c 2019-02-20 16:20:04.000000000 -0500 +*************** +*** 561,573 **** + if (!history_expansion_inhibited && history_expansion && history_expansion_p (line)) + { + /* If we are expanding the second or later line of a multi-line + command, decrease history_length so references to history expansions + in these lines refer to the previous history entry and not the + current command. */ + if (history_length > 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) + history_length--; + expanded = history_expand (line, &history_value); + if (history_length >= 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) +! history_length++; + + if (expanded) +--- 561,576 ---- + if (!history_expansion_inhibited && history_expansion && history_expansion_p (line)) + { ++ int old_len; ++ + /* If we are expanding the second or later line of a multi-line + command, decrease history_length so references to history expansions + in these lines refer to the previous history entry and not the + current command. */ ++ old_len = history_length; + if (history_length > 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) + history_length--; + expanded = history_expand (line, &history_value); + if (history_length >= 0 && command_oriented_history && current_command_first_line_saved && current_command_line_count > 1) +! history_length = old_len; + + if (expanded) + +*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +--- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 +*************** +*** 26,30 **** + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 7 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 ---- + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 8 + + #endif /* _PATCHLEVEL_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-009 new/bash-5.0-patches/bash50-009 --- old/bash-5.0-patches/bash50-009 1970-01-01 01:00:00.000000000 +0100 +++ new/bash-5.0-patches/bash50-009 2019-08-14 20:49:39.000000000 +0200 @@ -0,0 +1,42 @@ + BASH PATCH REPORT + ================= + +Bash-Release: 5.0 +Patch-ID: bash50-009 + +Bug-Reported-by: chet.ra...@case.edu +Bug-Reference-ID: +Bug-Reference-URL: + +Bug-Description: + +The history file reading code doesn't close the file descriptor open to +the history file when it encounters a zero-length file. + +Patch (apply with `patch -p0'): + +*** ../bash-5.0-patched/lib/readline/histfile.c 2018-06-11 09:14:52.000000000 -0400 +--- lib/readline/histfile.c 2019-05-16 15:55:57.000000000 -0400 +*************** +*** 306,309 **** +--- 312,316 ---- + { + free (input); ++ close (file); + return 0; /* don't waste time if we don't have to */ + } +*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +--- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 +*************** +*** 26,30 **** + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 8 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 ---- + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 9 + + #endif /* _PATCHLEVEL_H_ */