forked from premiere/premiere-libtorrent
fix lazy_bdecode build
This commit is contained in:
parent
3fb72b30b5
commit
c9bfa1279e
|
@ -137,7 +137,7 @@ namespace libtorrent
|
||||||
TORRENT_FAIL_BDECODE(e);
|
TORRENT_FAIL_BDECODE(e);
|
||||||
|
|
||||||
if (start + len + 1 > end)
|
if (start + len + 1 > end)
|
||||||
TORRENT_FAIL_BDECODE(errors::unexpected_eof);
|
TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
|
||||||
|
|
||||||
++start;
|
++start;
|
||||||
if (start == end) TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
|
if (start == end) TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
|
||||||
|
@ -200,7 +200,7 @@ namespace libtorrent
|
||||||
if (e)
|
if (e)
|
||||||
TORRENT_FAIL_BDECODE(e);
|
TORRENT_FAIL_BDECODE(e);
|
||||||
if (start + len + 1 > end)
|
if (start + len + 1 > end)
|
||||||
TORRENT_FAIL_BDECODE(errors::unexpected_eof);
|
TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
|
||||||
++start;
|
++start;
|
||||||
top->construct_string(start, int(len));
|
top->construct_string(start, int(len));
|
||||||
stack.pop_back();
|
stack.pop_back();
|
||||||
|
|
Loading…
Reference in New Issue