merge bdecode patch from RC_1_0. an empty string now produces an error rather than an empty bdecoded struct
This commit is contained in:
@@ -96,10 +96,12 @@ namespace libtorrent
|
||||
{
|
||||
char const* const orig_start = start;
|
||||
ret.clear();
|
||||
if (start == end) return 0;
|
||||
|
||||
std::vector<lazy_entry*> stack;
|
||||
|
||||
if (start == end)
|
||||
TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
|
||||
|
||||
stack.push_back(&ret);
|
||||
while (start <= end)
|
||||
{
|
||||
|
Reference in New Issue
Block a user