bash52-016.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-016
  5. Bug-Reported-by: F G <frank.graziano@gmail.com>
  6. Bug-Reference-ID: <CAOhYt35M5VctK+xAPu=Gy_UzzGmHedWPJE4q+kL4UHF_6Nb1kA@mail.gmail.com>
  7. Bug-Reference-URL:
  8. Bug-Description:
  9. If an expression in an arithmetic for loop expands to NULL, the shell
  10. would crash.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.2-patched/execute_cmd.c Thu Feb 23 14:15:05 2023
  13. --- execute_cmd.c Mon Feb 27 17:53:08 2023
  14. ***************
  15. *** 3051,3055 ****
  16. if (l->next)
  17. free (expr);
  18. ! new = make_word_list (make_word (temp), (WORD_LIST *)NULL);
  19. free (temp);
  20. --- 3051,3055 ----
  21. if (l->next)
  22. free (expr);
  23. ! new = make_word_list (make_word (temp ? temp : ""), (WORD_LIST *)NULL);
  24. free (temp);
  25. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  26. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  27. ***************
  28. *** 26,30 ****
  29. looks for to find the patch level (for the sccs version string). */
  30. ! #define PATCHLEVEL 15
  31. #endif /* _PATCHLEVEL_H_ */
  32. --- 26,30 ----
  33. looks for to find the patch level (for the sccs version string). */
  34. ! #define PATCHLEVEL 16
  35. #endif /* _PATCHLEVEL_H_ */