summaryrefslogtreecommitdiffstats
path: root/source/n/htdig/CVE-2007-6110.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/htdig/CVE-2007-6110.patch')
-rw-r--r--source/n/htdig/CVE-2007-6110.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/n/htdig/CVE-2007-6110.patch b/source/n/htdig/CVE-2007-6110.patch
new file mode 100644
index 000000000..2d5638ad1
--- /dev/null
+++ b/source/n/htdig/CVE-2007-6110.patch
@@ -0,0 +1,24 @@
+diff -u htdig-3.2.0b6/htsearch/Display.cc htdig-3.2.0b6/htsearch/Display.cc
+--- htdig-3.2.0b6/htsearch/Display.cc
++++ htdig-3.2.0b6/htsearch/Display.cc
+@@ -138,7 +138,7 @@
+ // Must temporarily stash the message in a String, since
+ // displaySyntaxError will overwrite the static temp used in form.
+
+- String s(form("No such sort method: `%s'", (const char*)config->Find("sort")));
++ String s("Invalid sort method.");
+
+ displaySyntaxError(s);
+ return;
+--- htdig-3.2.0b6.orig/libhtdig/ResultFetch.cc
++++ htdig-3.2.0b6/libhtdig/ResultFetch.cc
+@@ -142,7 +142,7 @@
+ // Must temporarily stash the message in a String, since
+ // displaySyntaxError will overwrite the static temp used in form.
+
+- String s(form("No such sort method: `%s'", (const char *) config->Find("sort")));
++ String s("Invalid search method.");
+
+ displaySyntaxError(s);
+ //return;
+