bash44-019 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.4
  4. Patch-ID: bash44-019
  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. *** ../bash-4.4.18/lib/readline/display.c 2016-07-28 14:49:33.000000000 -0400
  14. --- lib/readline/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. *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  29. --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  30. ***************
  31. *** 26,30 ****
  32. looks for to find the patch level (for the sccs version string). */
  33. ! #define PATCHLEVEL 18
  34. #endif /* _PATCHLEVEL_H_ */
  35. --- 26,30 ----
  36. looks for to find the patch level (for the sccs version string). */
  37. ! #define PATCHLEVEL 19
  38. #endif /* _PATCHLEVEL_H_ */