Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 0/3] jp: Patchset for parameter expansion segfaults



Add checks to guard against NULL-deref-caused segfaults in current
zsh parameter-expansion edge-cases.

> $ zsh -fc ': ${${(PAA)p[foo]}::=x}'
>
> [1] 4441 segmentation fault (core dumped) zsh -fc ': ${${(PAA)p[foo]}::=x}'

Joey Pabalinas (3):
  - Fix segfaults during parameter expansion
  - Use `(nil)` for empty identifier strings
  - Add `dupstring()` fallback to `zhtricat()`

 Src/params.c |  2 ++
 Src/string.c | 23 +++++++++++++++++++----
 Src/subst.c  |  4 ++++
 3 files changed, 25 insertions(+), 4 deletions(-)

-- 
2.15.1



Messages sorted by: Reverse Date, Date, Thread, Author