aboutsummaryrefslogtreecommitdiffstats
path: root/shell.h
diff options
context:
space:
mode:
authorMichal Zalewski <lcamtuf@coredump.cx>2014-10-10 11:16:06 +0100
committerPaul Kocialkowski <contact@paulk.fr>2014-11-16 11:43:09 +0100
commit80df778bb8f868423dfe5fc9847238eee8d0a764 (patch)
tree59d45ed476618e369899aaf1252f5ffcbb4df87e /shell.h
parent2190a70e6324494accf7747d2aa9f5e8702d875c (diff)
downloadexternal_bash-80df778bb8f868423dfe5fc9847238eee8d0a764.zip
external_bash-80df778bb8f868423dfe5fc9847238eee8d0a764.tar.gz
external_bash-80df778bb8f868423dfe5fc9847238eee8d0a764.tar.bz2
bugfix: bash executing code following func defHEADreplicant-4.2-0004replicant-4.2-0003replicant-4.2
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
Diffstat (limited to 'shell.h')
-rw-r--r--shell.h2
1 files changed, 2 insertions, 0 deletions
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 *));