]>
Commit | Line | Data |
---|---|---|
bd03fb8f AM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 4.0 | |
5 | Patch-ID: bash40-017 | |
6 | ||
7 | Bug-Reported-by: Lubomir Rintel <lkundrak@v3.sk> | |
8 | Bug-Reference-ID: <1237654931.32737.13.camel@localhost.localdomain> | |
9 | Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00174.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | Adding a null line to a here-document (e.g., by hitting EOF) causes the | |
14 | shell to dump core attempting to dereference the NULL pointer. | |
15 | ||
16 | Patch: | |
17 | ||
18 | *** ../bash-4.0-patched/parse.y 2009-03-08 21:24:47.000000000 -0400 | |
19 | --- parse.y 2009-03-21 14:38:42.000000000 -0400 | |
20 | *************** | |
21 | *** 1880,1884 **** | |
22 | ret = read_a_line (remove_quoted_newline); | |
23 | #if defined (HISTORY) | |
24 | ! if (remember_on_history && (parser_state & PST_HEREDOC)) | |
25 | { | |
26 | /* To make adding the the here-document body right, we need to rely | |
27 | --- 1880,1884 ---- | |
28 | ret = read_a_line (remove_quoted_newline); | |
29 | #if defined (HISTORY) | |
30 | ! if (ret && remember_on_history && (parser_state & PST_HEREDOC)) | |
31 | { | |
32 | /* To make adding the the here-document body right, we need to rely | |
33 | *** ../bash-4.0/patchlevel.h 2009-01-04 14:32:40.000000000 -0500 | |
34 | --- patchlevel.h 2009-02-22 16:11:31.000000000 -0500 | |
35 | *************** | |
36 | *** 26,30 **** | |
37 | looks for to find the patch level (for the sccs version string). */ | |
38 | ||
39 | ! #define PATCHLEVEL 16 | |
40 | ||
41 | #endif /* _PATCHLEVEL_H_ */ | |
42 | --- 26,30 ---- | |
43 | looks for to find the patch level (for the sccs version string). */ | |
44 | ||
45 | ! #define PATCHLEVEL 17 | |
46 | ||
47 | #endif /* _PATCHLEVEL_H_ */ |