diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-09-18 23:58:43 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-09-18 23:58:43 +0200 |
commit | 76708e107f2cd82e8f91eb688af1c69aeabf0b37 (patch) | |
tree | cf08d2aec43c49cd65a725efb2a1c44df7ff8048 | |
parent | 0614e2d4459e4e8636bf17a0fccfd2500cd398d4 (diff) | |
download | zsh-76708e107f2cd82e8f91eb688af1c69aeabf0b37.tar.gz zsh-76708e107f2cd82e8f91eb688af1c69aeabf0b37.zip |
Add patch to fix segfault in compinit's get_cvdef/freecvdef
Was triggered by the task tab completion.
-rw-r--r-- | debian/patches/fix-segfault-in-compinit-get_cvdef | 17 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 18 insertions, 0 deletions
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 000000000..ea00bf042 --- /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@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 62ed3e52b..2ef5cb596 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 |