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:24:31 +0000 |
commit | 9f90012712cc6554a8752e56e775c859cfd71e74 (patch) | |
tree | 9470a3da1081f9547ef2e6a3a4b250621efa693b /subst.c | |
parent | 621fb366eddb890018e250f121b75246034defe6 (diff) | |
download | android_external_bash-9f90012712cc6554a8752e56e775c859cfd71e74.tar.gz android_external_bash-9f90012712cc6554a8752e56e775c859cfd71e74.tar.bz2 android_external_bash-9f90012712cc6554a8752e56e775c859cfd71e74.zip |
Bash-4.3 patch 46
An incorrect conversion from an indexed to associative array can result in a
core dump.
Change-Id: I454b7e0249a8ef12468bc9dc5b01f617e4d864f8
Diffstat (limited to 'subst.c')
-rw-r--r-- | subst.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |