bash-4.1-005.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.1
  4. Patch-ID: bash41-005
  5. Bug-Reported-by: werner@suse.de
  6. Bug-Reference-ID: <201002251238.o1PCcYcg016893@boole.suse.de>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-02/msg00132.html
  8. Bug-Description:
  9. When the `read' builtin times out after the timeout specified with -t is
  10. exceeded, it does not reset the flags that tell signal handlers to process
  11. signals immediately instead of deferring their handling. This can result
  12. in unsafe functions being called from signal handlers, which can cause bash
  13. to hang or dump core.
  14. Patch (apply with `patch -p0'):
  15. *** ../bash-4.1-patched/builtins/read.def 2009-10-08 11:35:46.000000000 -0400
  16. --- ./builtins/read.def 2010-03-17 17:35:39.000000000 -0400
  17. ***************
  18. *** 616,621 ****
  19. zsyncfd (fd);
  20. - interrupt_immediately--;
  21. - terminate_immediately--;
  22. discard_unwind_frame ("read_builtin");
  23. --- 616,619 ----
  24. ***************
  25. *** 624,627 ****
  26. --- 622,628 ----
  27. assign_vars:
  28. + interrupt_immediately--;
  29. + terminate_immediately--;
  30. +
  31. #if defined (ARRAY_VARS)
  32. /* If -a was given, take the string read, break it into a list of words,
  33. *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
  34. --- ./patchlevel.h 2010-01-14 09:38:08.000000000 -0500
  35. ***************
  36. *** 26,30 ****
  37. looks for to find the patch level (for the sccs version string). */
  38. ! #define PATCHLEVEL 4
  39. #endif /* _PATCHLEVEL_H_ */
  40. --- 26,30 ----
  41. looks for to find the patch level (for the sccs version string). */
  42. ! #define PATCHLEVEL 5
  43. #endif /* _PATCHLEVEL_H_ */