From 1e8e815c01d129b105e396b1009ef0af74fb6a53 Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Jul 15 2015 09:58:08 +0000 Subject: 1182278 - bash crashes on `select' if REPLY is readonly 1241533,1224855 - bash memleak when LC_ALL set --- diff --git a/bash-4.3-select-readonly.patch b/bash-4.3-select-readonly.patch new file mode 100644 index 0000000..e64470d --- /dev/null +++ b/bash-4.3-select-readonly.patch @@ -0,0 +1,12 @@ +diff -up bash-4.3/builtins/read.def.old bash-4.3/builtins/read.def +--- bash-4.3/builtins/read.def.old 2015-07-15 11:12:13.884695357 +0200 ++++ bash-4.3/builtins/read.def 2015-07-15 11:10:55.339537361 +0200 +@@ -794,6 +794,8 @@ assign_vars: + else + var = bind_variable ("REPLY", input_string, 0); + VUNSETATTR (var, att_invisible); ++ if (readonly_p (var) || noassign_p (var)) ++ retval = EXECUTION_FAILURE; + + xfree (input_string); + return (retval); diff --git a/bash.spec b/bash.spec index 47ca096..ec95e68 100644 --- a/bash.spec +++ b/bash.spec @@ -8,7 +8,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Shells License: GPLv3+ Url: http://www.gnu.org/software/bash @@ -131,6 +131,12 @@ Patch135: bash-4.3-noecho.patch # 1224855 - memleak in 4.3.39 Patch136: bash-4.3-memleak.patch +# 1182278 - bash crashes on `select' if REPLY is readonly +Patch137: bash-4.3-select-readonly.patch + +#1241533,1224855 - bash leaks memory when LC_ALL set +Patch138: bash-4.3-memleak-lc_all.patch + BuildRequires: texinfo bison BuildRequires: ncurses-devel BuildRequires: autoconf, gettext @@ -227,6 +233,8 @@ This package contains documentation files for %{name}. %patch134 -p0 -b .delim %patch135 -p1 -b .noecho %patch136 -p0 -b .memleak +%patch137 -p1 -b .readonly +%patch138 -p1 -b .lc_all echo %{version} > _distribution echo %{release} > _patchlevel @@ -425,6 +433,10 @@ end %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Wed Jul 15 2015 Ondrej Oprala - 4.3.39-5 +- #1182278 - bash crashes on `select' if REPLY is readonly +- #1241533,1224855 - bash memleak when LC_ALL set + * Tue Jun 30 2015 Ondrej Oprala - 4.3.39-4 - Fix a leak introduced by plevel39