Siteshwar Vashisht 42f4b1
			     BASH PATCH REPORT
Siteshwar Vashisht 42f4b1
			     =================
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
Bash-Release:	4.3
Siteshwar Vashisht 42f4b1
Patch-ID:	bash43-043
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
Bug-Reported-by:	lolilolicon <lolilolicon@gmail.com>
Siteshwar Vashisht 42f4b1
Bug-Reference-ID:	<CAMtVo_MF16KWanCB4C8WxA88Qt26zWsvV6V7+_U2fM0E6tCDxw@mail.gmail.com>
Siteshwar Vashisht 42f4b1
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2014-08/msg00040.html
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
Bug-Description:
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
When the lastpipe option is enabled, the last component can contain nested
Siteshwar Vashisht 42f4b1
pipelines and cause a segmentation fault under certain circumestances.
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
Patch (apply with `patch -p0'):
Siteshwar Vashisht 42f4b1
Siteshwar Vashisht 42f4b1
*** ../bash-4.3-patched/execute_cmd.c	2014-07-30 10:26:52.000000000 -0400
Siteshwar Vashisht 42f4b1
--- execute_cmd.c	2014-08-15 08:55:24.000000000 -0400
Siteshwar Vashisht 42f4b1
***************
Siteshwar Vashisht 42f4b1
*** 2406,2412 ****
Siteshwar Vashisht 42f4b1
      {
Siteshwar Vashisht 42f4b1
  #if defined (JOB_CONTROL)
Siteshwar Vashisht 42f4b1
!       append_process (savestring (the_printed_command), dollar_dollar_pid, exec_result, lastpipe_jid);
Siteshwar Vashisht 42f4b1
! #endif
Siteshwar Vashisht 42f4b1
        lstdin = wait_for (lastpid);
Siteshwar Vashisht 42f4b1
  #if defined (JOB_CONTROL)
Siteshwar Vashisht 42f4b1
        /* If wait_for removes the job from the jobs table, use result of last
Siteshwar Vashisht 42f4b1
--- 2433,2447 ----
Siteshwar Vashisht 42f4b1
      {
Siteshwar Vashisht 42f4b1
  #if defined (JOB_CONTROL)
Siteshwar Vashisht 42f4b1
!       if (INVALID_JOB (lastpipe_jid) == 0)
Siteshwar Vashisht 42f4b1
!         {
Siteshwar Vashisht 42f4b1
!           append_process (savestring (the_printed_command_except_trap), dollar_dollar_pid, exec_result, lastpipe_jid);
Siteshwar Vashisht 42f4b1
!           lstdin = wait_for (lastpid);
Siteshwar Vashisht 42f4b1
!         }
Siteshwar Vashisht 42f4b1
!       else
Siteshwar Vashisht 42f4b1
!         lstdin = wait_for_single_pid (lastpid);		/* checks bgpids list */
Siteshwar Vashisht 42f4b1
! #else
Siteshwar Vashisht 42f4b1
        lstdin = wait_for (lastpid);
Siteshwar Vashisht 42f4b1
+ #endif
Siteshwar Vashisht 42f4b1
+ 
Siteshwar Vashisht 42f4b1
  #if defined (JOB_CONTROL)
Siteshwar Vashisht 42f4b1
        /* If wait_for removes the job from the jobs table, use result of last
Siteshwar Vashisht 42f4b1
*** ../bash-4.3/patchlevel.h	2012-12-29 10:47:57.000000000 -0500
Siteshwar Vashisht 42f4b1
--- patchlevel.h	2014-03-20 20:01:28.000000000 -0400
Siteshwar Vashisht 42f4b1
***************
Siteshwar Vashisht 42f4b1
*** 26,30 ****
Siteshwar Vashisht 42f4b1
     looks for to find the patch level (for the sccs version string). */
Siteshwar Vashisht 42f4b1
  
Siteshwar Vashisht 42f4b1
! #define PATCHLEVEL 42
Siteshwar Vashisht 42f4b1
  
Siteshwar Vashisht 42f4b1
  #endif /* _PATCHLEVEL_H_ */
Siteshwar Vashisht 42f4b1
--- 26,30 ----
Siteshwar Vashisht 42f4b1
     looks for to find the patch level (for the sccs version string). */
Siteshwar Vashisht 42f4b1
  
Siteshwar Vashisht 42f4b1
! #define PATCHLEVEL 43
Siteshwar Vashisht 42f4b1
  
Siteshwar Vashisht 42f4b1
  #endif /* _PATCHLEVEL_H_ */