Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: vi history search crashes
- X-seq: zsh-workers 23813
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: vi history search crashes
- Date: Thu, 13 Sep 2007 05:55:58 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I think some people are experiencing segfaults doing history searches
in vi mode because of a double free(). On the other hand, I have a
massive headache.
Index: Src/Zle/zle_hist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_hist.c,v
retrieving revision 1.36
diff -u -r1.36 zle_hist.c
--- Src/Zle/zle_hist.c 10 Sep 2006 18:10:49 -0000 1.36
+++ Src/Zle/zle_hist.c 13 Sep 2007 09:53:52 -0000
@@ -1240,6 +1240,7 @@
if (vipenultsrchstr) {
zsfree(vipenultsrchstr);
+ vipenultsrchstr = NULL;
}
if (visrchstr) {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author