mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
16269: Fix crash on reserved-word completion.
This commit is contained in:
parent
6f081b9dd3
commit
dfb24f53ec
2 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,10 @@
|
|||
|
||||
2001-11-21 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 16269: Src/Zle/compctl.c: Use allocated strings when adding
|
||||
matches for hash table entries, as the pattern match code may
|
||||
attempt to modify them. (Fixes crash reported in 16235.)
|
||||
|
||||
* Sven: 16249: Src/parse.c: Clear pending here-documents upon a
|
||||
parse error.
|
||||
|
||||
|
|
|
@ -2096,7 +2096,7 @@ dumphashtable(HashTable ht, int what)
|
|||
|
||||
for (i = 0; i < ht->hsize; i++)
|
||||
for (hn = ht->nodes[i]; hn; hn = hn->next)
|
||||
addmatch(hn->nam, (char *) hn);
|
||||
addmatch(dupstring(hn->nam), (char *) hn);
|
||||
}
|
||||
|
||||
/* ScanFunc used by maketildelist() et al. */
|
||||
|
|
Loading…
Reference in a new issue