diff options
| author | Chet Ramey <chet.ramey@case.edu> | 2019-11-25 00:40:52 +0100 |
|---|---|---|
| committer | Vasyl Gello <vasek.gello@gmail.com> | 2019-11-26 20:25:33 +0000 |
| commit | 5102153507858b811115387ef2d70d69551eac4a (patch) | |
| tree | 613d15da36412237c80a6f6ab787da919e6a411a | |
| parent | 20fcf2bf95200c519f302a73a122beb0f148eb21 (diff) | |
| download | android_external_bash-5102153507858b811115387ef2d70d69551eac4a.tar.gz android_external_bash-5102153507858b811115387ef2d70d69551eac4a.tar.bz2 android_external_bash-5102153507858b811115387ef2d70d69551eac4a.zip | |
Bash-4.3 patch 46
An incorrect conversion from an indexed to associative array can result in a
core dump.
Change-Id: I454b7e0249a8ef12468bc9dc5b01f617e4d864f8
| -rw-r--r-- | patchlevel.h | 2 | ||||
| -rw-r--r-- | subst.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/patchlevel.h b/patchlevel.h index beea688..22bb68c 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -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 45 +#define PATCHLEVEL 46 #endif /* _PATCHLEVEL_H_ */ @@ -9561,7 +9561,14 @@ shell_expand_word_list (tlist, eflags) opts[opti] = '\0'; if (opti > 0) - make_internal_declare (tlist->word->word, opts); + { + t = make_internal_declare (tlist->word->word, opts); + if (t != EXECUTION_SUCCESS) + { + last_command_exit_value = t; + exp_jump_to_top_level (DISCARD); + } + } t = do_word_assignment (tlist->word, 0); if (t == 0) |
