readline70-004 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 7.0
  4. Patch-ID: readline70-004
  5. Bug-Reported-by: Kieran Grant <kieran.thehacker.grant@gmail.com>
  6. Bug-Reference-ID: <ec9071ae-efb1-9e09-5d03-e905daf2835c@gmail.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2018-02/msg00002.html
  8. Bug-Description:
  9. With certain values for PS1, especially those that wrap onto three or more
  10. lines, readline will miscalculate the number of invisible characters,
  11. leading to crashes and core dumps.
  12. Patch (apply with `patch -p0'):
  13. *** ../readline-7.0.3/display.c 2016-07-28 14:49:33.000000000 -0400
  14. --- display.c 2018-02-03 19:19:35.000000000 -0500
  15. ***************
  16. *** 772,776 ****
  17. wadjust = (newlines == 0)
  18. ? prompt_invis_chars_first_line
  19. ! : ((newlines == prompt_lines_estimate) ? wrap_offset : prompt_invis_chars_first_line);
  20. /* fix from Darin Johnson <darin@acuson.com> for prompt string with
  21. --- 788,794 ----
  22. wadjust = (newlines == 0)
  23. ? prompt_invis_chars_first_line
  24. ! : ((newlines == prompt_lines_estimate)
  25. ! ? (wrap_offset - prompt_invis_chars_first_line)
  26. ! : 0);
  27. /* fix from Darin Johnson <darin@acuson.com> for prompt string with
  28. *** ../readline-7.0/patchlevel 2013-11-15 08:11:11.000000000 -0500
  29. --- patchlevel 2014-03-21 08:28:40.000000000 -0400
  30. ***************
  31. *** 1,3 ****
  32. # Do not edit -- exists only for use by patch
  33. ! 3
  34. --- 1,3 ----
  35. # Do not edit -- exists only for use by patch
  36. ! 4