bash51-014 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-014
  5. Bug-Reported-by: platon7pronko@gmail.com
  6. Bug-Reference-ID:
  7. Bug-Reference-URL: https://savannah.gnu.org/patch/?10035
  8. Bug-Description:
  9. Bash may produce corrupted input if a multibyte character spans a 512-byte
  10. boundary while reading the output of a command substitution.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-20210217/subst.c 2021-02-03 10:32:08.000000000 -0500
  13. --- subst.c 2021-03-01 16:47:52.000000000 -0500
  14. ***************
  15. *** 6243,6247 ****
  16. /* punt on the hard case for now */
  17. memset (&ps, '\0', sizeof (mbstate_t));
  18. ! mblen = mbrtowc (&wc, bufp-1, bufn+1, &ps);
  19. if (MB_INVALIDCH (mblen) || mblen == 0 || mblen == 1)
  20. istring[istring_index++] = c;
  21. --- 6243,6247 ----
  22. /* punt on the hard case for now */
  23. memset (&ps, '\0', sizeof (mbstate_t));
  24. ! mblen = mbrtowc (&wc, bufp-1, bufn, &ps);
  25. if (MB_INVALIDCH (mblen) || mblen == 0 || mblen == 1)
  26. istring[istring_index++] = c;
  27. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  28. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  29. ***************
  30. *** 26,30 ****
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 13
  33. #endif /* _PATCHLEVEL_H_ */
  34. --- 26,30 ----
  35. looks for to find the patch level (for the sccs version string). */
  36. ! #define PATCHLEVEL 14
  37. #endif /* _PATCHLEVEL_H_ */