zsh/zsh-5.0.7-heredocs-sigsegv.patch

29 lines
728 B
Diff

From 9b948be0afaa3ab0dee1e04edd2b577cf4010290 Mon Sep 17 00:00:00 2001
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
Date: Fri, 17 Apr 2015 22:43:38 +0100
Subject: [PATCH] 34921: handle error in recursive par_event().
Here documents in an interrupted list caused bad juju.
Upstream-commit: 2e48eceb1ad2b7b33170d7104e94351cc7231e51
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
---
Src/parse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/Src/parse.c b/Src/parse.c
index 433efb9..30270ef 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -515,6 +515,7 @@ par_event(void)
if (!par_event()) {
ecused = oec;
ecbuf[p] |= wc_bdata(Z_END);
+ return errflag ? 0 : 1;
}
}
return 1;
--
2.1.0