Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 0/3] jp: Patchset for parameter expansion segfaults
- X-seq: zsh-workers 42273
- From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx
- Subject: [PATCH 0/3] jp: Patchset for parameter expansion segfaults
- Date: Sun, 14 Jan 2018 05:23:41 -1000
- Cc: dana@xxxxxxx, zsh-workers@xxxxxxx, Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ODBVz0bszZAtM1CN1/goWAZ5eA8RuI3azexhaja4oZA=; b=XjWlrTPFEwnJeLFbkDu1CHGnVW/hfwudNKUEYNzlQHHGuHHl/NE6CEgZ3vYJlLI36Q /7hHUDhwQBAmIXvWJzGnF/CL9nFhMEbN2wcRvDOZrXF1tNXTXAF3fSqXkuL005A30PN6 RG3bDBOUYUjiMKt6s8f8NDiqcIJfkMMgCT+ydc+fDOb4Mu+bY29WreWiMg5YJ/RenlOs +aMXZhzDpxnrQhLSCtW0HihxT14X08pWXhg+UXrLaJgL5OnLkLWZkiWHncjeJbbvKOlt 52aSuF6eaXql0CbhxeK1k1BQkCd5qMlt6Xs4d599a/u+onGtrmJvw4lPwUr5MD0p3Y4q +3VA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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