0046-patchlevel-46.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-046
  2. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.3
  6. Patch-ID: bash43-046
  7. Bug-Reported-by: Sergey Tselikh <stselikh@gmail.com>
  8. Bug-Reference-ID: <20150816110235.91f3e12e3f20d20cdaad963e@gmail.com>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-08/msg00080.html
  10. Bug-Description:
  11. An incorrect conversion from an indexed to associative array can result in a
  12. core dump.
  13. Patch (apply with `patch -p0'):
  14. *** a/subst.c 2015-08-13 11:32:54.000000000 -0400
  15. --- b/subst.c 2015-08-18 10:13:59.000000000 -0400
  16. ***************
  17. *** 9562,9566 ****
  18. opts[opti] = '\0';
  19. if (opti > 0)
  20. ! make_internal_declare (tlist->word->word, opts);
  21. t = do_word_assignment (tlist->word, 0);
  22. --- 9562,9573 ----
  23. opts[opti] = '\0';
  24. if (opti > 0)
  25. ! {
  26. ! t = make_internal_declare (tlist->word->word, opts);
  27. ! if (t != EXECUTION_SUCCESS)
  28. ! {
  29. ! last_command_exit_value = t;
  30. ! exp_jump_to_top_level (DISCARD);
  31. ! }
  32. ! }
  33. t = do_word_assignment (tlist->word, 0);
  34. *** a/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
  35. --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
  36. ***************
  37. *** 26,30 ****
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 45
  40. #endif /* _PATCHLEVEL_H_ */
  41. --- 26,30 ----
  42. looks for to find the patch level (for the sccs version string). */
  43. ! #define PATCHLEVEL 46
  44. #endif /* _PATCHLEVEL_H_ */