Roman Rakus 928cba
			     BASH PATCH REPORT
Roman Rakus 928cba
			     =================
Roman Rakus 928cba
Roman Rakus 928cba
Bash-Release:	4.0
Roman Rakus 928cba
Patch-ID:	bash40-017
Roman Rakus 928cba
Roman Rakus 928cba
Bug-Reported-by:	Lubomir Rintel <lkundrak@v3.sk>
Roman Rakus 928cba
Bug-Reference-ID:	<1237654931.32737.13.camel@localhost.localdomain>
Roman Rakus 928cba
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00174.html
Roman Rakus 928cba
Roman Rakus 928cba
Bug-Description:
Roman Rakus 928cba
Roman Rakus 928cba
Adding a null line to a here-document (e.g., by hitting EOF) causes the
Roman Rakus 928cba
shell to dump core attempting to dereference the NULL pointer.
Roman Rakus 928cba
Roman Rakus 928cba
Patch:
Roman Rakus 928cba
Roman Rakus 928cba
*** ../bash-4.0-patched/parse.y	2009-03-08 21:24:47.000000000 -0400
Roman Rakus 928cba
--- parse.y	2009-03-21 14:38:42.000000000 -0400
Roman Rakus 928cba
***************
Roman Rakus 928cba
*** 1880,1884 ****
Roman Rakus 928cba
    ret = read_a_line (remove_quoted_newline);
Roman Rakus 928cba
  #if defined (HISTORY)
Roman Rakus 928cba
!   if (remember_on_history && (parser_state & PST_HEREDOC))
Roman Rakus 928cba
      {
Roman Rakus 928cba
        /* To make adding the the here-document body right, we need to rely
Roman Rakus 928cba
--- 1880,1884 ----
Roman Rakus 928cba
    ret = read_a_line (remove_quoted_newline);
Roman Rakus 928cba
  #if defined (HISTORY)
Roman Rakus 928cba
!   if (ret && remember_on_history && (parser_state & PST_HEREDOC))
Roman Rakus 928cba
      {
Roman Rakus 928cba
        /* To make adding the the here-document body right, we need to rely
Roman Rakus 928cba
*** ../bash-4.0/patchlevel.h	2009-01-04 14:32:40.000000000 -0500
Roman Rakus 928cba
--- patchlevel.h	2009-02-22 16:11:31.000000000 -0500
Roman Rakus 928cba
***************
Roman Rakus 928cba
*** 26,30 ****
Roman Rakus 928cba
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 928cba
  
Roman Rakus 928cba
! #define PATCHLEVEL 16
Roman Rakus 928cba
  
Roman Rakus 928cba
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 928cba
--- 26,30 ----
Roman Rakus 928cba
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 928cba
  
Roman Rakus 928cba
! #define PATCHLEVEL 17
Roman Rakus 928cba
  
Roman Rakus 928cba
  #endif /* _PATCHLEVEL_H_ */