From: | "Ben de Groot (yngwin)" <yngwin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/rb_libtorrent/files: rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch rb_libtorrent-0.14.1-ax_python_path.patch |
Date: | Mon, 29 Jun 2009 19:35:02 |
Message-Id: | E1MLMd2-0002Yt-CQ@stork.gentoo.org |
1 | yngwin 09/06/29 19:35:00 |
2 | |
3 | Added: rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch |
4 | Removed: rb_libtorrent-0.14.1-ax_python_path.patch |
5 | Log: |
6 | Add patch to fix the tests complementing the CVE patch. Remove no longer used patch from filesdir. |
7 | (Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/rb_libtorrent/files/rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: rb_libtorrent-0.13-CVE-2009-1760-test-fix.patch |
16 | =================================================================== |
17 | diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp |
18 | index 22efb0a..b0d11d1 100644 |
19 | --- a/test/test_primitives.cpp |
20 | +++ b/test/test_primitives.cpp |
21 | @@ -17,6 +17,9 @@ |
22 | using namespace libtorrent; |
23 | using namespace boost::tuples; |
24 | using boost::bind; |
25 | +namespace libtorrent { |
26 | + fs::path sanitize_path(fs::path const& p); |
27 | +} |
28 | |
29 | tuple<int, int> feed_bytes(http_parser& parser, char const* str) |
30 | { |
31 | @@ -255,7 +258,7 @@ int test_main() |
32 | torrent["info"] = info; |
33 | torrent_info ti2(torrent); |
34 | std::cerr << ti2.name() << std::endl; |
35 | - TEST_CHECK(ti2.name() == "test3"); |
36 | + TEST_CHECK(ti2.name() == "test1/test2/test3"); |
37 | |
38 | info["name.utf-8"] = "test2/../test3/.././../../test4"; |
39 | torrent["info"] = info; |