]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.3 patch 9
authorChet Ramey <chet.ramey@case.edu>
Fri, 11 Apr 2014 15:04:26 +0000 (11:04 -0400)
committerChet Ramey <chet.ramey@case.edu>
Fri, 11 Apr 2014 15:04:26 +0000 (11:04 -0400)
parse.y
patchlevel.h
y.tab.c

diff --git a/parse.y b/parse.y
index 83d5b9f20470343304aefeb647be32ad292993af..91bf3bf649bd85476758436c54504b2b9eab3bf3 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -2424,7 +2424,7 @@ shell_getc (remove_quoted_newline)
         not already end in an EOF character.  */
       if (shell_input_line_terminator != EOF)
        {
-         if (shell_input_line_size < SIZE_MAX && shell_input_line_len > shell_input_line_size - 3)
+         if (shell_input_line_size < SIZE_MAX-3 && (shell_input_line_len+3 > shell_input_line_size))
            shell_input_line = (char *)xrealloc (shell_input_line,
                                        1 + (shell_input_line_size += 2));
 
index 4099c48c7cb65c393a8ca51584776fb7221abbd2..2860f131dd951865cf8a878d7d69616eccd0af0e 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 8
+#define PATCHLEVEL 9
 
 #endif /* _PATCHLEVEL_H_ */
diff --git a/y.tab.c b/y.tab.c
index 709a56a3bb60f15c8f4c245f6eed54a3737970d4..80fe9308398ebec2f4dd076ef08bb2eed2741fa5 100644 (file)
--- a/y.tab.c
+++ b/y.tab.c
@@ -4736,7 +4736,7 @@ shell_getc (remove_quoted_newline)
         not already end in an EOF character.  */
       if (shell_input_line_terminator != EOF)
        {
-         if (shell_input_line_size < SIZE_MAX && shell_input_line_len > shell_input_line_size - 3)
+         if (shell_input_line_size < SIZE_MAX-3 && (shell_input_line_len+3 > shell_input_line_size))
            shell_input_line = (char *)xrealloc (shell_input_line,
                                        1 + (shell_input_line_size += 2));