[Pkg-zsh-commits] [zsh] 01/01: Add patch by Bart Schaefer to fix segfault in is_cond_binary_op

Axel Beckert abe at deuxchevaux.org
Sun Jan 31 23:24:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit f3384aafc86fa0e8b5085ad9d5c006626d80981d
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Feb 1 00:24:40 2016 +0100

    Add patch by Bart Schaefer to fix segfault in is_cond_binary_op
---
 debian/patches/fix-segfault-in-is_cond_binary_op.patch | 18 ++++++++++++++++++
 debian/patches/series                                  |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/fix-segfault-in-is_cond_binary_op.patch b/debian/patches/fix-segfault-in-is_cond_binary_op.patch
new file mode 100644
index 0000000..f03362f
--- /dev/null
+++ b/debian/patches/fix-segfault-in-is_cond_binary_op.patch
@@ -0,0 +1,18 @@
+Description: Fix segfault in is_cond_binary_op when compiling with -fPIE
+ The issue possibly also pops up under other circumstances.
+Author: Bart Schaefer <schaefer at brasslantern.com>
+Origin: http://www.zsh.org/mla/workers/2016/msg00394.html
+
+Index: zsh/Src/text.c
+===================================================================
+--- zsh.orig/Src/text.c	2016-01-24 17:19:53.947656591 +0100
++++ zsh/Src/text.c	2016-02-01 00:15:09.098327625 +0100
+@@ -47,7 +47,7 @@
+  */
+ static const char *cond_binary_ops[] = {
+     "=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq",
+-    "-ne", "-lt", "-gt", "-le", "-ge", "=~"
++    "-ne", "-lt", "-gt", "-le", "-ge", "=~", NULL
+ };
+ 
+ static char *tptr, *tbuf, *tlim, *tpending;
diff --git a/debian/patches/series b/debian/patches/series
index 857f0f2..d0f0c47 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 further-mitigate-test-suite-hangs.patch
+fix-segfault-in-is_cond_binary_op.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list