From 80df778bb8f868423dfe5fc9847238eee8d0a764 Mon Sep 17 00:00:00 2001 From: Michal Zalewski Date: Fri, 10 Oct 2014 11:16:06 +0100 Subject: bugfix: bash executing code following func def This is an upstream bugfix (with slight alterations): Patch-ID: bash42-053 A combination of nested command substitutions and function importing from the environment can cause bash to execute code appearing in the environment variable value following the function definition. Change-Id: I660e59c76d0d50de52d48a0d399fe1dfef3bded8 --- shell.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell.h') diff --git a/shell.h b/shell.h index 92685e1..a643d80 100644 --- a/shell.h +++ b/shell.h @@ -167,5 +167,7 @@ typedef struct _sh_parser_state_t { } sh_parser_state_t; /* Let's try declaring these here. */ +extern char *parser_remaining_input __P((void)); + extern sh_parser_state_t *save_parser_state __P((sh_parser_state_t *)); extern void restore_parser_state __P((sh_parser_state_t *)); -- cgit v1.1