READLINE PATCH REPORT
=====================
Readline-Release: 5.1
Patch-ID: readline51-003
Bug-Reported-by: Bob Rossi <[EMAIL PROTECTED]>
Bug-Reference-ID: <[EMAIL PROTECTED]>
Bug-Reference-URL:
Bug-Description:
In some cases, readline will reference freed memory when attempting to
display a portion of the prompt.
Patch:
*** ../readline-5.1/readline.c Tue Dec 20 17:38:29 2005
--- readline.c Fri Feb 17 22:54:22 2006
***************
*** 282,287 ****
--- 282,288 ----
{
FREE (rl_prompt);
rl_prompt = prompt ? savestring (prompt) : (char *)NULL;
+ rl_display_prompt = rl_prompt ? rl_prompt : "";
rl_visible_prompt_length = rl_expand_prompt (rl_prompt);
return 0;
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong. No day but today.
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash