summaryrefslogtreecommitdiffstats
path: root/source/a/bash/bash-5.2-patches/bash52-022
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-01-14 19:16:48 +0000
committer Eric Hameleers <alien@slackware.com>2024-01-14 20:58:46 +0100
commitb12c0fed430cc064cc7ee88878c9f0c5ad8de86a (patch)
treee1a6f80215c8d3a8e27b9e1f9e1679ff8b10c91c /source/a/bash/bash-5.2-patches/bash52-022
parent589ec060e74d0b5ca8a13f22f90ede6ac71f1b5f (diff)
downloadcurrent-b12c0fed430cc064cc7ee88878c9f0c5ad8de86a.tar.gz
current-b12c0fed430cc064cc7ee88878c9f0c5ad8de86a.tar.xz
Sun Jan 14 19:16:48 UTC 202420240114191648
a/bash-5.2.026-x86_64-1.txz: Upgraded. a/cpio-2.15-x86_64-1.txz: Upgraded. kde/kdeconnect-kde-23.08.4-x86_64-2.txz: Rebuilt. Recompiled against pulseaudio-qt-1.4.0. l/libidn-1.42-x86_64-1.txz: Upgraded. l/libpsl-0.21.5-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/bash/bash-5.2-patches/bash52-022')
-rw-r--r--source/a/bash/bash-5.2-patches/bash52-02253
1 files changed, 53 insertions, 0 deletions
diff --git a/source/a/bash/bash-5.2-patches/bash52-022 b/source/a/bash/bash-5.2-patches/bash52-022
new file mode 100644
index 000000000..557d38706
--- /dev/null
+++ b/source/a/bash/bash-5.2-patches/bash52-022
@@ -0,0 +1,53 @@
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 5.2
+Patch-ID: bash52-022
+
+Bug-Reported-by: srobertson@peratonlabs.com
+Bug-Reference-ID:
+Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00049.html
+
+Bug-Description:
+
+It's possible for readline to try to zero out a line that's not null-
+terminated, leading to a memory fault.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-5.2-patched/lib/readline/display.c 2022-04-05 10:47:31.000000000 -0400
+--- lib/readline/display.c 2022-12-13 13:11:22.000000000 -0500
+***************
+*** 2684,2692 ****
+
+ if (visible_line)
+! {
+! temp = visible_line;
+! while (*temp)
+! *temp++ = '\0';
+! }
+ rl_on_new_line ();
+ forced_display++;
+--- 2735,2740 ----
+
+ if (visible_line)
+! memset (visible_line, 0, line_size);
+!
+ rl_on_new_line ();
+ forced_display++;
+
+*** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 21
+
+ #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 22
+
+ #endif /* _PATCHLEVEL_H_ */