diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-06-07 10:08:02 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-06-07 10:08:02 -0700 |
commit | 769bd4070a26ed356410187bfdd0e61939bf8481 (patch) | |
tree | 93245bdb89a20d8b9cad717ef273560abdc6731d | |
parent | 7a5ecf4909bb73550012c4b580f054a29a255380 (diff) | |
download | zsh-769bd4070a26ed356410187bfdd0e61939bf8481.tar.gz zsh-769bd4070a26ed356410187bfdd0e61939bf8481.tar.xz zsh-769bd4070a26ed356410187bfdd0e61939bf8481.zip |
38630: fix infinite loop of "hash ="
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/builtin.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 5ff60c6f2..b066f208e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-06-07 Barton E. Schaefer <schaefer@zsh.org> + + * 38630: Src/builtin.c: fix infinite loop of "hash =" + 2016-06-06 Daniel Shahaf <d.s@daniel.shahaf.name> * 38610: Functions/VCS_Info/VCS_INFO_quilt: vcs_info quilt: diff --git a/Src/builtin.c b/Src/builtin.c index 6f07fc678..c2fb81ed1 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3748,6 +3748,7 @@ bin_hash(char *name, char **argv, Options ops, UNUSED(int func)) if (!(asg = getasg(&argv, NULL))) { zwarnnam(name, "bad assignment"); returnval = 1; + break; } else if (ASG_VALUEP(asg)) { if(isset(RESTRICTED)) { zwarnnam(name, "restricted: %s", asg->value.scalar); |