aboutsummaryrefslogblamecommitdiffstats
path: root/debian/patches/180_execdict.patch
blob: 1d3b8d60a0e16eb6d7095031246109679292996b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                      
Subject: Fix potentially segfault of execdict()
From: Tatsuya Kinoshita <tats@debian.org>

--- a/main.c
+++ b/main.c
@@ -5604,7 +5604,7 @@ execdict(char *word)
 	disp_message("Execution failed", TRUE);
 	return;
     }
-    else {
+    else if (buf != NO_BUFFER) {
 	buf->filename = w;
 	buf->buffername = Sprintf("%s %s", DICTBUFFERNAME, word)->ptr;
 	if (buf->type == NULL)