~doko/+junk/pkg-bash-debian

« back to all changes in this revision

Viewing changes to patches/bash42-042.diff

  • Committer: Matthias Klose
  • Date: 2013-03-30 14:41:11 UTC
  • Revision ID: doko@18xx.org-20130330144111-rq4o77aa4uvuw7x3
bash (4.2+dfsg-1) unstable; urgency=low

  * Apply upstream patches 038 - 045, fixes for
    - If a backslash-newline (which is removed) with no other input is given as
      input to `read', the shell tries to dereference a null pointer and
      segfaults.
    - Under certain circumstances, bash attempts to expand variables in
      arithmetic expressions even when evaluation is being suppressed.
    - Output redirection applied to builtin commands missed I/O errors if
      they happened when the file descriptor was closed, rather than on write
      (e.g., like with an out-of-space error on a remote NFS file system).
    - Process substitution incorrectly inherited a flag that inhibited using the
      (local) temporary environment for variable lookups if it was providing
      the filename to a redirection.  The intent the flag is to enforce the
      Posix command expansion ordering rules.
    - Compilation failed after specifying the  `--enable-minimal-config' option
      to configure (more specifically, specifying `--disable-alias').
    - When SIGCHLD is trapped, and a SIGCHLD trap handler runs when a pending
      `read -t' invocation times out and generates SIGALRM, bash can crash with
      a segmentation fault.
    - When converting a multibyte string to a wide character string as part of
      pattern matching, bash does not handle the end of the string correctly,
      causing the search for the NUL to go beyond the end of the string and
      reference random memory.  Depending on the contents of that memory, bash
      can produce errors or crash.
    - The <&n- and >&n- redirections, which move one file descriptor to another,
      leave the file descriptor closed when applied to builtins or compound
      commands.
  * Fix parallel build (Steven Chamberlain). Closes: #694659.
  * Fix german translations. Closes: #688571.
  * Fix typo in man page. Closes: #696706.

 -- Matthias Klose <doko@debian.org>  Sat, 30 Mar 2013 14:56:51 +0100

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                             BASH PATCH REPORT
 
2
                             =================
 
3
 
 
4
Bash-Release:   4.2
 
5
Patch-ID:       bash42-042
 
6
 
 
7
Bug-Reported-by:        Adam Pippin <adam@gp-inc.ca>
 
8
Bug-Reference-ID:       <CAPYbNHr6ucZFOoWsRdUJj6KP3Ju0j1bkESa_cmb7iU+kZwdVpg@mail.gmail.com>
 
9
Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2012-11/msg00087.html
 
10
 
 
11
Bug-Description:
 
12
 
 
13
Compilation failed after specifying the  `--enable-minimal-config' option to
 
14
configure (more specifically, specifying `--disable-alias').
 
15
 
 
16
Patch (apply with `patch -p0'):
 
17
 
 
18
Index: b/bash/parse.y
 
19
===================================================================
 
20
--- a/bash/parse.y
 
21
+++ b/bash/parse.y
 
22
@@ -2393,6 +2393,7 @@
 
23
           is the last character).  If it's not the last character, we need
 
24
           to consume the quoted newline and move to the next character in
 
25
           the expansion. */
 
26
+#if defined (ALIAS)
 
27
        if (expanding_alias () && shell_input_line[shell_input_line_index+1] == '\0')
 
28
          {
 
29
            uc = 0;
 
30
@@ -2403,7 +2404,8 @@
 
31
            shell_input_line_index++;   /* skip newline */
 
32
            goto next_alias_char;       /* and get next character */
 
33
          }
 
34
-       else        
 
35
+       else
 
36
+#endif 
 
37
          goto restart_read;
 
38
     }
 
39
 
 
40
Index: b/bash/patchlevel.h
 
41
===================================================================
 
42
--- a/bash/patchlevel.h
 
43
+++ b/bash/patchlevel.h
 
44
@@ -25,6 +25,6 @@
 
45
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
 
46
    looks for to find the patch level (for the sccs version string). */
 
47
 
 
48
-#define PATCHLEVEL 41
 
49
+#define PATCHLEVEL 42
 
50
 
 
51
 #endif /* _PATCHLEVEL_H_ */