From: tripolar Date: Mon, 7 Jan 2013 16:44:58 +0000 (+0000) Subject: [packages/ctorrent] allow negative integers ... should fix random "error, initial... X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=9796959bf1539fca7e33a423b42cafd19936e4e6;p=packages.git [packages/ctorrent] allow negative integers ... should fix random "error, initial meta info failed" taken from this bugreport: http://sourceforge.net/tracker/?func=detail&aid=3159066&group_id=202532&atid=981959 thanks Norbert Zagyi for the hint git-svn-id: svn://svn.openwrt.org/openwrt/packages@35041 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/ctorrent/Makefile b/net/ctorrent/Makefile index c8593d91f..16504e2a3 100644 --- a/net/ctorrent/Makefile +++ b/net/ctorrent/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ctorrent PKG_VERSION:=dnh3.3.2 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/dtorrent \ diff --git a/net/ctorrent/patches/100-negative-ints.patch b/net/ctorrent/patches/100-negative-ints.patch new file mode 100644 index 000000000..864ce1b69 --- /dev/null +++ b/net/ctorrent/patches/100-negative-ints.patch @@ -0,0 +1,13 @@ +--- a/bencode.cpp ++++ b/bencode.cpp +@@ -44,6 +44,10 @@ size_t buf_long(const char *b,size_t len + p++; len--; + } + ++ if( *p == '-'){ ++ p++; len--; ++ } ++ + for(psave = p; len && isdigit(*p); p++,len--) ; + + if(!len || MAX_INT_SIZ < (p - psave) || *p != endchar) return 0;