diff options
author | tron <tron> | 2004-07-20 13:59:12 +0000 |
---|---|---|
committer | tron <tron> | 2004-07-20 13:59:12 +0000 |
commit | 70653cb9055dd70c80e68851a8a27a20b2f7a511 (patch) | |
tree | 0c9efabfb028d33ba8ea85a278d9e681aca8ec03 /misc | |
parent | 698494755654501e9c779c2ee20b0f629f72516c (diff) | |
download | pkgsrc-70653cb9055dd70c80e68851a8a27a20b2f7a511.tar.gz |
Add a patch from the bidwatcher home page which avoid segfaults while
bidwatcher is parsing auction data. Bump package revision.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bidwatcher/Makefile | 3 | ||||
-rw-r--r-- | misc/bidwatcher/distinfo | 4 | ||||
-rw-r--r-- | misc/bidwatcher/patches/patch-ac | 35 |
3 files changed, 35 insertions, 7 deletions
diff --git a/misc/bidwatcher/Makefile b/misc/bidwatcher/Makefile index 7bcffd1ddc4..0ea542a8119 100644 --- a/misc/bidwatcher/Makefile +++ b/misc/bidwatcher/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.37 2004/05/09 09:29:32 jmmv Exp $ +# $NetBSD: Makefile,v 1.38 2004/07/20 13:59:12 tron Exp $ DISTNAME= bidwatcher-1.3.15 +PKGREVISION= 1 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bidwatcher/} diff --git a/misc/bidwatcher/distinfo b/misc/bidwatcher/distinfo index bc1cd088677..cacf00891e5 100644 --- a/misc/bidwatcher/distinfo +++ b/misc/bidwatcher/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.30 2004/05/09 09:29:32 jmmv Exp $ +$NetBSD: distinfo,v 1.31 2004/07/20 13:59:12 tron Exp $ SHA1 (bidwatcher-1.3.15.tar.gz) = 96ab2167b7ab1710969c4b6f7b28766de76a9f82 Size (bidwatcher-1.3.15.tar.gz) = 178532 bytes -SHA1 (patch-ac) = ff37c64771f09b40b82f744420e2f1af43d9e37b +SHA1 (patch-ac) = eafc0e9b2626c6b8680a594353f83523959b5573 diff --git a/misc/bidwatcher/patches/patch-ac b/misc/bidwatcher/patches/patch-ac index 464b93dc874..761bf89f73f 100644 --- a/misc/bidwatcher/patches/patch-ac +++ b/misc/bidwatcher/patches/patch-ac @@ -1,8 +1,35 @@ -$NetBSD: patch-ac,v 1.10 2003/08/30 22:17:31 tron Exp $ +$NetBSD: patch-ac,v 1.11 2004/07/20 13:59:12 tron Exp $ ---- helpers.cpp 17 Jul 2003 04:41:59 -0000 1.90 -+++ helpers.cpp 4 Aug 2003 04:22:05 -0000 -@@ -513,7 +513,8 @@ +--- helpers.cpp.orig 2004-04-23 22:23:28.000000000 +0200 ++++ helpers.cpp 2004-07-20 15:48:50.000000000 +0200 +@@ -319,7 +319,25 @@ + // strip the html tags + for (u = 0; u < buffLength; u++) { + c = stringToStrip[u]; +- if (c == '<') IncludeFlag=5; ++ if (u+7<buffLength && ++ ( 0 == strncmp(&stringToStrip[u],"<script",7) || ++ 0 == strncmp(&stringToStrip[u],"<SCRIPT",7) ) ) ++ IncludeFlag = 6; ++ else if (u+8<buffLength && ++ ( 0 == strncmp(&stringToStrip[u],"</script",8) || ++ 0 == strncmp(&stringToStrip[u],"</SCRIPT",8) ) ) ++ IncludeFlag = 5; ++ else if (IncludeFlag == 6 && (c == '>' || c == '<') ) ++ IncludeFlag = 6; ++ else if (c == '<') { ++ IncludeFlag=5; ++ if (u+4<buffLength && ++ ( 0 == strncmp(&stringToStrip[u],"<br",3) ++ || 0 == strncmp(&stringToStrip[u],"<td",3) ++ || 0 == strncmp(&stringToStrip[u],"<tr",3) ) ++ && Buff[BuffIdx-1] != '\n' ) ++ Buff[BuffIdx++] = '\n'; ++ } + else if (c == '>') IncludeFlag=10; + else if (IncludeFlag==10) { + if ((BuffIdx > 0) && (c == ' ') && +@@ -530,7 +548,8 @@ return PB_OUTBID; else if (strstr(Buff, "You have been outbid")) return PB_OUTBID; |