zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 0/3] jp: Patchset for parameter expansion segfaults
@ 2018-01-14 15:23 Joey Pabalinas
  2018-01-14 15:23 ` [PATCH 1/3] jp: Fix segfaults during parameter expansion Joey Pabalinas
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Joey Pabalinas @ 2018-01-14 15:23 UTC (permalink / raw)
  To: schaefer; +Cc: dana, zsh-workers, Joey Pabalinas

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-21 17:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 15:23 [PATCH 0/3] jp: Patchset for parameter expansion segfaults Joey Pabalinas
2018-01-14 15:23 ` [PATCH 1/3] jp: Fix segfaults during parameter expansion Joey Pabalinas
2018-01-14 15:23 ` [PATCH 2/3] jp: Use `(nil)` for empty identifier strings Joey Pabalinas
2018-01-14 15:43   ` Daniel Shahaf
2018-01-14 16:55     ` Joey Pabalinas
2018-01-14 20:30   ` Bart Schaefer
2018-01-14 15:23 ` [PATCH 3/3] jp: Add `dupstring()` fallback to `zhtricat()` Joey Pabalinas
2018-01-14 15:29   ` Joey Pabalinas
2018-01-21 17:56     ` Bart Schaefer
2018-01-14 20:41 ` [PATCH 0/3] jp: Patchset for parameter expansion segfaults Bart Schaefer
2018-01-18 22:58   ` Joey Pabalinas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).