equal
deleted
inserted
replaced
1 BASH PATCH REPORT |
|
2 ================= |
|
3 |
|
4 Bash-Release: 4.2 |
|
5 Patch-ID: bash42-038 |
|
6 |
|
7 Bug-Reported-by: [email protected] |
|
8 Bug-Reference-ID: <[email protected]> |
|
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-08/msg00049.html |
|
10 |
|
11 Bug-Description: |
|
12 |
|
13 If a backslash-newline (which is removed) with no other input is given as |
|
14 input to `read', the shell tries to dereference a null pointer and seg faults. |
|
15 |
|
16 Patch (apply with `patch -p0'): |
|
17 |
|
18 *** ../bash-4.2-patched/builtins/read.def 2012-03-11 17:52:44.000000000 -0400 |
|
19 --- builtins/read.def 2012-08-22 11:53:09.000000000 -0400 |
|
20 *************** |
|
21 *** 792,796 **** |
|
22 #endif |
|
23 |
|
24 ! if (saw_escape) |
|
25 { |
|
26 t = dequote_string (input_string); |
|
27 --- 847,851 ---- |
|
28 #endif |
|
29 |
|
30 ! if (saw_escape && input_string && *input_string) |
|
31 { |
|
32 t = dequote_string (input_string); |
|
33 *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 |
|
34 --- patchlevel.h Thu Feb 24 21:41:34 2011 |
|
35 *************** |
|
36 *** 26,30 **** |
|
37 looks for to find the patch level (for the sccs version string). */ |
|
38 |
|
39 ! #define PATCHLEVEL 37 |
|
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 38 |
|
46 |
|
47 #endif /* _PATCHLEVEL_H_ */ |
|