aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/patches/180_execdict.patch14
-rw-r--r--debian/patches/series1
2 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/180_execdict.patch b/debian/patches/180_execdict.patch
new file mode 100644
index 0000000..1d3b8d6
--- /dev/null
+++ b/debian/patches/180_execdict.patch
@@ -0,0 +1,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)
diff --git a/debian/patches/series b/debian/patches/series
index fb0d5c6..8a7fe4f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@
150_contact-list.patch
160_ignore-shy.patch
170_w3mman2html-utf8.patch
+180_execdict.patch