[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-bash] Bash-5.2 Patch 22
From: |
Dr. Werner Fink |
Subject: |
Re: [bug-bash] Bash-5.2 Patch 22 |
Date: |
Tue, 16 Jan 2024 10:00:55 +0100 |
On 2024/01/14 13:34:06 -0500, Chet Ramey wrote:
> 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_ */
>
Hi,
what is with the readline82-008, readline82-009, and readline82-010
patches?
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
signature.asc
Description: PGP signature
- Bash-5.2 Patch 22, Chet Ramey, 2024/01/14
- Re: [bug-bash] Bash-5.2 Patch 22,
Dr. Werner Fink <=