Upload cas/72/72dee13601ce38f6746eb15239999a7c56f8e1ff5eb1ec8153a1f213e4acdb29 with huggingface_hub
Browse files
cas/72/72dee13601ce38f6746eb15239999a7c56f8e1ff5eb1ec8153a1f213e4acdb29
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
READLINE PATCH REPORT
|
| 2 |
+
=====================
|
| 3 |
+
|
| 4 |
+
Readline-Release: 8.3
|
| 5 |
+
Patch-ID: readline83-003
|
| 6 |
+
|
| 7 |
+
Bug-Reported-by: penguin p <tgckpg@gmail.com>
|
| 8 |
+
Bug-Reference-ID: <TYYPR01MB14049C63D4635628EE867664BFA37A@TYYPR01MB14049.jpnprd01.prod.outlook.com>
|
| 9 |
+
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2025-08/msg00080.html
|
| 10 |
+
|
| 11 |
+
Bug-Description:
|
| 12 |
+
|
| 13 |
+
A SIGINT during a reverse i-search can cause a segmentation fault due to
|
| 14 |
+
accessing data freed by a signal handler.
|
| 15 |
+
|
| 16 |
+
Patch (apply with `patch -p0'):
|
| 17 |
+
|
| 18 |
+
*** ../readline-8.3-patched/input.c Tue Jul 8 15:37:13 2025
|
| 19 |
+
--- input.c Fri Aug 22 15:04:05 2025
|
| 20 |
+
***************
|
| 21 |
+
*** 976,984 ****
|
| 22 |
+
if (rl_signal_event_hook)
|
| 23 |
+
(*rl_signal_event_hook) ();
|
| 24 |
+
! #if defined (READLINE_CALLBACKS)
|
| 25 |
+
! else if (osig == SIGINT && (ostate & RL_STATE_CALLBACK) && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
|
| 26 |
+
/* just these cases for now */
|
| 27 |
+
_rl_abort_internal ();
|
| 28 |
+
- #endif
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
--- 1004,1012 ----
|
| 32 |
+
if (rl_signal_event_hook)
|
| 33 |
+
(*rl_signal_event_hook) ();
|
| 34 |
+
! /* If the application's SIGINT handler returns, make sure we abort out of
|
| 35 |
+
! searches and numeric arguments because we've freed necessary state. */
|
| 36 |
+
! if (osig == SIGINT && (ostate & (RL_STATE_ISEARCH|RL_STATE_NSEARCH|RL_STATE_NUMERICARG)))
|
| 37 |
+
/* just these cases for now */
|
| 38 |
+
_rl_abort_internal ();
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
*** ../readline-8.3-patched/isearch.c Thu Jun 5 09:22:11 2025
|
| 42 |
+
--- isearch.c Tue Aug 19 14:55:55 2025
|
| 43 |
+
***************
|
| 44 |
+
*** 890,899 ****
|
| 45 |
+
_rl_isearch_cleanup (_rl_search_cxt *cxt, int r)
|
| 46 |
+
{
|
| 47 |
+
if (r >= 0)
|
| 48 |
+
_rl_isearch_fini (cxt);
|
| 49 |
+
_rl_scxt_dispose (cxt, 0);
|
| 50 |
+
- _rl_iscxt = 0;
|
| 51 |
+
-
|
| 52 |
+
- RL_UNSETSTATE(RL_STATE_ISEARCH);
|
| 53 |
+
|
| 54 |
+
return (r != 0);
|
| 55 |
+
--- 890,901 ----
|
| 56 |
+
_rl_isearch_cleanup (_rl_search_cxt *cxt, int r)
|
| 57 |
+
{
|
| 58 |
+
+ RL_UNSETSTATE(RL_STATE_ISEARCH);
|
| 59 |
+
+ if (cxt == 0)
|
| 60 |
+
+ return (r != 0);
|
| 61 |
+
+
|
| 62 |
+
+ _rl_iscxt = 0;
|
| 63 |
+
if (r >= 0)
|
| 64 |
+
_rl_isearch_fini (cxt);
|
| 65 |
+
_rl_scxt_dispose (cxt, 0);
|
| 66 |
+
|
| 67 |
+
return (r != 0);
|
| 68 |
+
*** ../readline-8.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
|
| 69 |
+
--- patchlevel 2024-03-21 08:28:40.000000000 -0400
|
| 70 |
+
***************
|
| 71 |
+
*** 1,3 ****
|
| 72 |
+
# Do not edit -- exists only for use by patch
|
| 73 |
+
|
| 74 |
+
! 2
|
| 75 |
+
--- 1,3 ----
|
| 76 |
+
# Do not edit -- exists only for use by patch
|
| 77 |
+
|
| 78 |
+
! 3
|