bash-4.2-013.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-013
  5. Bug-Reported-by: Marten Wikstrom <marten.wikstrom@keystream.se>
  6. Bug-Reference-ID: <BANLkTikKECAh94ZEX68iQvxYuPeEM_xoSQ@mail.gmail.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00049.html
  8. Bug-Description:
  9. An off-by-one error caused the shell to skip over CTLNUL characters,
  10. which are used internally to mark quoted null strings. The effect
  11. was to have stray 0x7f characters left after expanding words like
  12. """"""""aa.
  13. Patch (apply with `patch -p0'):
  14. *** ../bash-4.2-patched/subst.c 2011-03-06 14:11:11.000000000 -0500
  15. --- ./subst.c 2011-05-11 11:23:33.000000000 -0400
  16. ***************
  17. *** 3707,3711 ****
  18. }
  19. else if (string[i] == CTLNUL)
  20. ! i++;
  21. prev_i = i;
  22. --- 3710,3717 ----
  23. }
  24. else if (string[i] == CTLNUL)
  25. ! {
  26. ! i++;
  27. ! continue;
  28. ! }
  29. prev_i = i;
  30. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  31. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  32. ***************
  33. *** 26,30 ****
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 12
  36. #endif /* _PATCHLEVEL_H_ */
  37. --- 26,30 ----
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 13
  40. #endif /* _PATCHLEVEL_H_ */