summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-10-13 10:29:59 +0200
committerLars Wendler <polynomial-c@gentoo.org>2016-10-13 10:31:53 +0200
commiteb4d79382613c3fa33a2375ba75f3b4f8b67eae4 (patch)
treeb91676ad9b1871a38d73b4a551472ef3aa5b71b6 /app-shells/bash/files
parentdev-util/boost-build: remove seemingly harmful -p (#588712) (diff)
downloadgentoo-eb4d79382613c3fa33a2375ba75f3b4f8b67eae4.tar.gz
gentoo-eb4d79382613c3fa33a2375ba75f3b4f8b67eae4.tar.bz2
gentoo-eb4d79382613c3fa33a2375ba75f3b4f8b67eae4.zip
app-shells/bash: Revbump to fix bug #597006
Package-Manager: portage-2.3.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-shells/bash/files')
-rw-r--r--app-shells/bash/files/bash-4.4-history-alloclist.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-4.4-history-alloclist.patch b/app-shells/bash/files/bash-4.4-history-alloclist.patch
new file mode 100644
index 000000000000..8072bde5e26f
--- /dev/null
+++ b/app-shells/bash/files/bash-4.4-history-alloclist.patch
@@ -0,0 +1,26 @@
+*** ../bash-4.4/lib/readline/history.c 2015-12-28 13:50:31.000000000 -0500
+--- lib/readline/history.c 2016-09-30 14:28:40.000000000 -0400
+***************
+*** 58,61 ****
+--- 58,63 ----
+ #define DEFAULT_HISTORY_INITIAL_SIZE 502
+
++ #define MAX_HISTORY_INITIAL_SIZE 8192
++
+ /* The number of slots to increase the_history by. */
+ #define DEFAULT_HISTORY_GROW_SIZE 50
+***************
+*** 308,312 ****
+ {
+ if (history_stifled && history_max_entries > 0)
+! history_size = history_max_entries + 2;
+ else
+ history_size = DEFAULT_HISTORY_INITIAL_SIZE;
+--- 310,316 ----
+ {
+ if (history_stifled && history_max_entries > 0)
+! history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE)
+! ? MAX_HISTORY_INITIAL_SIZE
+! : history_max_entries + 2;
+ else
+ history_size = DEFAULT_HISTORY_INITIAL_SIZE;