summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2009-06-29 19:35:00 +0000
committerBen de Groot <yngwin@gentoo.org>2009-06-29 19:35:00 +0000
commit57250e67af151d0794408dbee9210ae148d90ae9 (patch)
tree07b8ed152eacb39b5a32e379ed80973c97f12615 /net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch
parentFix build with gcc 4.4, bug #272851 by hirakendu <hirakendu@gmail.com> (diff)
downloadgentoo-2-57250e67af151d0794408dbee9210ae148d90ae9.tar.gz
gentoo-2-57250e67af151d0794408dbee9210ae148d90ae9.tar.bz2
gentoo-2-57250e67af151d0794408dbee9210ae148d90ae9.zip
Add patch to fix the tests complementing the CVE patch. Remove no longer used patch from filesdir.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch')
-rw-r--r--net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch b/net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch
new file mode 100644
index 000000000000..9ab1ea80e210
--- /dev/null
+++ b/net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch
@@ -0,0 +1,23 @@
+diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp
+index 22efb0a..b0d11d1 100644
+--- a/test/test_primitives.cpp
++++ b/test/test_primitives.cpp
+@@ -17,6 +17,9 @@
+ using namespace libtorrent;
+ using namespace boost::tuples;
+ using boost::bind;
++namespace libtorrent {
++ fs::path sanitize_path(fs::path const& p);
++}
+
+ tuple<int, int> feed_bytes(http_parser& parser, char const* str)
+ {
+@@ -255,7 +258,7 @@ int test_main()
+ torrent["info"] = info;
+ torrent_info ti2(torrent);
+ std::cerr << ti2.name() << std::endl;
+- TEST_CHECK(ti2.name() == "test3");
++ TEST_CHECK(ti2.name() == "test1/test2/test3");
+
+ info["name.utf-8"] = "test2/../test3/.././../../test4";
+ torrent["info"] = info;