Charles Kerr
|
3d7f38fa68
|
get the bencoded text compliant with the bittorrent spec w.r.t. dictionaries: "keys must be strings and appear in sorted order (sorted as raw strings, not alphanumerics)."
|
2007-06-29 02:27:00 +00:00 |
|
Charles Kerr
|
5128d0a434
|
fix terribly nasty bencode corruption bug from r2024 regarding the sorting of dictionary keys in tr_bencDictAdd(). this corrupts all the pointers that are already floating out there to existing values in the dictionary... if BitTornado really needs these to be sorted, then we should sort a temporary copy in tr_bencSave(), not here in our internal structures.
|
2007-06-19 03:01:57 +00:00 |
|
Charles Kerr
|
64ce2edbfb
|
* makemeta: don't add dotfiles to the torrents
* bencode: trying to chase down a memory leak
|
2007-06-19 01:49:56 +00:00 |
|
Eric Petit
|
ba5bb320ca
|
Bencoded dictionaries are now sorted alphabetically, this should fix
compatibility with some clients, incl. BitTornado-based ones.
(Reported by roee88 from LH-ABC)
|
2007-06-10 15:38:58 +00:00 |
|
Josh Elsasser
|
a3ca76cced
|
Don't bencode signed integers as unsigned.
|
2007-05-09 07:00:08 +00:00 |
|
Josh Elsasser
|
6f1c25a22e
|
Don't use uninitialized variables.
|
2007-04-18 16:41:37 +00:00 |
|
Josh Elsasser
|
bb6f766112
|
Escape nonprintable characters in TYPE_STR values in tr_bencPrint output.
|
2007-04-15 06:21:12 +00:00 |
|
Josh Elsasser
|
7d67c4b457
|
Fix benc list allocations for like the fourth time.
Hopefully this time it actually works.
|
2007-04-03 00:51:22 +00:00 |
|
Josh Elsasser
|
574902b461
|
Fix benc list/dict allocation.
|
2007-04-02 21:19:53 +00:00 |
|
Josh Elsasser
|
ebcc73121b
|
Remove tr_bencListIter(), it was a stupid idea.
|
2007-03-31 17:40:28 +00:00 |
|
Josh Elsasser
|
978b5cec11
|
Add iterator function for bencoded lists.
|
2007-03-30 00:12:39 +00:00 |
|
Josh Elsasser
|
0c1c57a62a
|
Eliminate an error-prone varargs function.
|
2007-03-29 21:02:59 +00:00 |
|
Josh Elsasser
|
09c87aad84
|
Merge PEX branch, I hope this works.
|
2007-03-23 08:28:01 +00:00 |
|
Josh Elsasser
|
41a81769e3
|
Better checking of metainfo.
Strip / out of filenames and path components.
Safely handle . and .. in file paths.
|
2007-03-05 00:07:48 +00:00 |
|
Josh Elsasser
|
6ebeef7924
|
Correctly bencode strings containing nul characters.
|
2007-01-28 23:26:57 +00:00 |
|
Josh Elsasser
|
0257761670
|
Merge nat-traversal branch to trunk.
|
2006-09-25 18:37:45 +00:00 |
|
Eric Petit
|
f199e0a9d9
|
Revert [619]
|
2006-07-16 19:39:23 +00:00 |
|
Mitchell Livingston
|
5d36721a15
|
Remove old Sparkle...
|
2006-07-16 19:28:19 +00:00 |
|
Josh Elsasser
|
a2962c4a71
|
Don't leak memory when bencode parsing fails.
|
2006-07-07 16:21:30 +00:00 |
|
Eric Petit
|
f98fe6a1b0
|
Added $Id$ keywords and updated a few headers
|
2006-05-29 21:21:23 +00:00 |
|
Eric Petit
|
1ec413ea5c
|
Fixes warnings
|
2006-04-26 10:59:09 +00:00 |
|
Josh Elsasser
|
9120989a88
|
Make sure not to go past the end of the buffer when loading bencoded data.
Add code to encode using bencoding.
|
2006-04-25 07:00:18 +00:00 |
|
Eric Petit
|
a6aa884776
|
Import from 2005-10-26
|
2006-01-12 17:43:21 +00:00 |
|