[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash crashes if TERM is unset and the Delete key is pressed twice
From: |
Emanuele Torre |
Subject: |
Re: bash crashes if TERM is unset and the Delete key is pressed twice |
Date: |
Wed, 14 Dec 2022 20:55:38 +0100 |
On Wed, Dec 14, 2022 at 02:30:04PM -0500, Chet Ramey wrote:
> Try this.
>
> *** ../bash-20221202/lib/readline/readline.c 2022-12-06 09:48:50.000000000
> -0500
> --- lib/readline/readline.c 2022-12-14 14:20:32.000000000 -0500
> ***************
> *** 591,595 ****
> (*rl_redisplay_function) ();
> _rl_want_redisplay = 0;
> ! memcpy ((void *)_rl_top_level, (void *)olevel, sizeof (procenv_t));
>
> /* If we longjmped because of a timeout, handle it here. */
> --- 591,596 ----
> (*rl_redisplay_function) ();
> _rl_want_redisplay = 0;
> ! if (RL_ISSTATE (RL_STATE_CALLBACK))
> ! memcpy ((void *)_rl_top_level, (void *)olevel, sizeof (procenv_t));
>
> /* If we longjmped because of a timeout, handle it here. */
Thank you. That seems to fix the issue.
emanuele6