asan fuzzing fixes; fix incomplete multibyte chars in history expansion; new nosort GLOBSORT value

This commit is contained in:
Chet Ramey
2023-05-01 09:59:55 -04:00
parent 7aae19bfe4
commit 23935dbe85
9 changed files with 95 additions and 41 deletions
+4
View File
@@ -307,6 +307,10 @@ void
_rl_start_using_history (void)
{
using_history ();
#if 1
if (_rl_saved_line_for_history && _rl_saved_line_for_history->data)
_rl_free_undo_list ((UNDO_LIST *)_rl_saved_line_for_history->data);
#endif
_rl_free_saved_history_line ();
_rl_history_search_pos = -99; /* some random invalid history position */
}