diff options
author | ache <ache@FreeBSD.org> | 2002-05-15 16:52:48 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-05-15 16:52:48 +0800 |
commit | cea6b449d735d832f5959f46f6161b5b98b5fdd6 (patch) | |
tree | af923d9ee1ce04d24b2e0c58212302faca71ba9c /www/mnogosearch | |
parent | 8d45037a49afb01ea8060ca66cf213e87b8f3466 (diff) | |
download | freebsd-ports-gnome-cea6b449d735d832f5959f46f6161b5b98b5fdd6.tar.gz freebsd-ports-gnome-cea6b449d735d832f5959f46f6161b5b98b5fdd6.tar.zst freebsd-ports-gnome-cea6b449d735d832f5959f46f6161b5b98b5fdd6.zip |
Fix query buffer overflow
Diffstat (limited to 'www/mnogosearch')
-rw-r--r-- | www/mnogosearch/Makefile | 6 | ||||
-rw-r--r-- | www/mnogosearch/files/patch-ac | 17 | ||||
-rw-r--r-- | www/mnogosearch/pkg-descr | 2 |
3 files changed, 18 insertions, 7 deletions
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile index 7bb9ba745dd0..298d4f2fc98e 100644 --- a/www/mnogosearch/Makefile +++ b/www/mnogosearch/Makefile @@ -7,18 +7,18 @@ PORTNAME= mnogosearch PORTVERSION= 3.1.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www databases -MASTER_SITES= http://search.mnogo.ru/Download/ +MASTER_SITES= http://www.mnogosearch.org/Download/ MAINTAINER= ache@FreeBSD.org MAN1= indexer.1 MAN5= indexer.conf.5 +USE_LIBTOOL= yes INSTALLS_SHLIB= yes USE_GMAKE= yes -GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-phrase \ --enable-shared \ --enable-freebsd-pthreads \ diff --git a/www/mnogosearch/files/patch-ac b/www/mnogosearch/files/patch-ac index 1fbce5bd52ef..673785c743f0 100644 --- a/www/mnogosearch/files/patch-ac +++ b/www/mnogosearch/files/patch-ac @@ -1,6 +1,6 @@ ---- src/search.c.bak Tue May 15 13:08:14 2001 -+++ src/search.c Fri May 18 16:22:44 2001 -@@ -1239,7 +1239,7 @@ +--- src/search.c.orig Tue Jun 26 12:55:17 2001 ++++ src/search.c Wed May 15 11:29:07 2002 +@@ -1246,7 +1246,7 @@ int i; time_t tclock; tclock=time(0); @@ -9,3 +9,14 @@ for(i=0;i<MAXRANDOM;i++) Randoms[i]=0; } +@@ -1404,6 +1404,10 @@ + if(!UDM_STRNCMP(token,"q=")){ + char str[UDMSTRSIZ]=""; + query_words=strdup(UdmUnescapeCGIQuery(str,token+2)); ++ if (strlen(query_words) > 512) { ++ printf("<html><body>Query string too long!</body></html>\n"); ++ return(0); ++ } + query_url_escaped=strdup(UdmEscapeURL(str,query_words)); + query_form_escaped=UdmHtmlSpecialChars(query_words); + }else diff --git a/www/mnogosearch/pkg-descr b/www/mnogosearch/pkg-descr index 66b00bef7532..a8a72288e4a5 100644 --- a/www/mnogosearch/pkg-descr +++ b/www/mnogosearch/pkg-descr @@ -4,4 +4,4 @@ engines such as cooking recipies or searching newspaper articles. Provides pre-built web search frontends in C (via CGI) and PHP. -WWW: http://search.mnoGo.ru/ +WWW: http://www.mnogosearch.org/ |