From 8755644b5bafe05c3b0b2f61a5d1c6f52d5d9ec4 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 4 Aug 2013 11:58:55 +0900 Subject: New patch 180_execdict.patch to fix potentially segfault --- debian/patches/180_execdict.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 debian/patches/180_execdict.patch (limited to 'debian/patches/180_execdict.patch') 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 + +--- 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) -- cgit v1.2.3