diff options
Diffstat (limited to 'net-print/cups/files/cups-1.2.12-CVE-2008-0047.patch')
-rw-r--r-- | net-print/cups/files/cups-1.2.12-CVE-2008-0047.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-print/cups/files/cups-1.2.12-CVE-2008-0047.patch b/net-print/cups/files/cups-1.2.12-CVE-2008-0047.patch new file mode 100644 index 000000000000..6eb786ff9eb4 --- /dev/null +++ b/net-print/cups/files/cups-1.2.12-CVE-2008-0047.patch @@ -0,0 +1,15 @@ +Index: cups-1.2.12/cgi-bin/search.c +=================================================================== +--- cups-1.2.12.orig/cgi-bin/search.c ++++ cups-1.2.12/cgi-bin/search.c +@@ -171,7 +171,9 @@ cgiCompileSearch(const char *query) /* I + * string + RE overhead... + */ + +- wlen = (sptr - s) + 4 * wlen + 2 * strlen(prefix) + 4; ++ wlen = (sptr - s) + 2 * 4 * wlen + 2 * strlen(prefix) + 11; ++ if (lword) ++ wlen += strlen(lword); + + if (wlen > slen) + { |