diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-01-16 01:15:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-16 01:15:49 +0000 |
commit | 4a88c2baa4f5cd25d38061b7e4ca491b5530d074 (patch) | |
tree | b18d1cf7d47bbb997096d217043cbd42b285487f /net-p2p/ctorrent/files | |
parent | old (diff) | |
download | gentoo-2-4a88c2baa4f5cd25d38061b7e4ca491b5530d074.tar.gz gentoo-2-4a88c2baa4f5cd25d38061b7e4ca491b5530d074.tar.bz2 gentoo-2-4a88c2baa4f5cd25d38061b7e4ca491b5530d074.zip |
Update to EAPI 2 and fix parsing of torrents with negative ints.
(Portage version: 2.2.0_alpha13/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p/ctorrent/files')
-rw-r--r-- | net-p2p/ctorrent/files/ctorrent-3.3.2-negative-ints.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-p2p/ctorrent/files/ctorrent-3.3.2-negative-ints.patch b/net-p2p/ctorrent/files/ctorrent-3.3.2-negative-ints.patch new file mode 100644 index 000000000000..c3f98c713d01 --- /dev/null +++ b/net-p2p/ctorrent/files/ctorrent-3.3.2-negative-ints.patch @@ -0,0 +1,17 @@ +allow negative integers ... should fix random "error, initial meta info failed" + +https://sourceforge.net/tracker/?func=detail&aid=3159066&group_id=202532&atid=981959 + +--- ctorrent-dnh3.3.2/bencode.cpp ++++ ctorrent-dnh3.3.2/bencode.cpp +@@ -44,6 +44,10 @@ + 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; |