# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/htdig/CVE-2007-6110.patch # Copyright (C) 2007 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- diff -Nur htdig-3.2.0b6-orig/htsearch/Display.cc htdig-3.2.0b6/htsearch/Display.cc --- htdig-3.2.0b6-orig/htsearch/Display.cc 2007-12-13 10:20:02.000000000 +0000 +++ htdig-3.2.0b6/htsearch/Display.cc 2007-12-13 10:20:29.000000000 +0000 @@ -137,7 +137,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; diff -Nur htdig-3.2.0b6-orig/libhtdig/ResultFetch.cc htdig-3.2.0b6/libhtdig/ResultFetch.cc --- htdig-3.2.0b6-orig/libhtdig/ResultFetch.cc 2007-12-13 10:20:02.000000000 +0000 +++ htdig-3.2.0b6/libhtdig/ResultFetch.cc 2007-12-13 10:20:29.000000000 +0000 @@ -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 sort method"); displaySyntaxError(s); //return;