[Pkg-zsh-commits] [zsh] 01/01: Add patch to fix segfault in compinit's get_cvdef/freecvdef

Axel Beckert abe at deuxchevaux.org
Wed Sep 18 21:59:45 UTC 2013


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

abe pushed a commit to branch debian
in repository zsh.

commit 76708e107f2cd82e8f91eb688af1c69aeabf0b37
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Wed Sep 18 23:58:43 2013 +0200

    Add patch to fix segfault in compinit's get_cvdef/freecvdef
    
    Was triggered by the task tab completion.
---
 debian/patches/fix-segfault-in-compinit-get_cvdef |   17 +++++++++++++++++
 debian/patches/series                             |    1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/fix-segfault-in-compinit-get_cvdef b/debian/patches/fix-segfault-in-compinit-get_cvdef
new file mode 100644
index 0000000..ea00bf0
--- /dev/null
+++ b/debian/patches/fix-segfault-in-compinit-get_cvdef
@@ -0,0 +1,17 @@
+Description: Fixes segfault on "task <Tab><Tab>"
+Bug-Zsh: http://www.zsh.org/mla/workers/2013/msg00772.html
+Author: Axel Beckert <abe at debian.org>
+
+Index: zsh/Src/Zle/computil.c
+===================================================================
+--- zsh.orig/Src/Zle/computil.c	2013-09-18 23:09:08.000000000 +0200
++++ zsh/Src/Zle/computil.c	2013-09-18 23:28:55.000000000 +0200
+@@ -2992,7 +2992,7 @@
+ 	    return *p;
+ 	} else if (!min || !*p || (*p)->lastt < (*min)->lastt)
+ 	    min = p;
+-    if (i)
++    if (i > 0)
+ 	min = p;
+     if ((new = parse_cvdef(nam, args))) {
+ 	freecvdef(*min);
diff --git a/debian/patches/series b/debian/patches/series
index 62ed3e5..2ef5cb5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ suppress_texinfo_warning_by_adding_item_arguments.patch
 texinfo_remove_leading_whitespace.patch
 vcs_info_guilt_support.patch
 replace-texi2html-with-makeinfo
+fix-segfault-in-compinit-get_cvdef

-- 
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