bash52-031.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-031
  5. Bug-Reported-by: Grisha Levit <grishalevit@gmail.com>
  6. Bug-Reference-ID: <CAMu=BrrD52xxF7C9Ke1fosAurHq1kz82t7FcHsrPBw9CbAst6A@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2023-06/msg00045.html
  8. Bug-Description:
  9. There is a memory leak in the code that implements the optimized $(<file)
  10. expansion for some code paths.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.2-patched/builtins/evalstring.c Tue Dec 13 12:53:21 2022
  13. --- builtins/evalstring.c Tue Nov 28 17:25:39 2023
  14. ***************
  15. *** 763,766 ****
  16. --- 773,779 ----
  17. if (fnp)
  18. *fnp = fn;
  19. + else
  20. + free (fn);
  21. +
  22. return fd;
  23. }
  24. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  25. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  26. ***************
  27. *** 26,30 ****
  28. looks for to find the patch level (for the sccs version string). */
  29. ! #define PATCHLEVEL 30
  30. #endif /* _PATCHLEVEL_H_ */
  31. --- 26,30 ----
  32. looks for to find the patch level (for the sccs version string). */
  33. ! #define PATCHLEVEL 31
  34. #endif /* _PATCHLEVEL_H_ */