Bash-4.3 patch 9

This commit is contained in:
Chet Ramey 2014-04-11 11:04:26 -04:00
commit 6ebbb24a5c
3 changed files with 3 additions and 3 deletions

View file

@ -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));