introduce safety limit on total number of items in bencoded trees in lazy_bdecode. Document lazy_bdecode and its error codes. Make dump_torrent able to change the decoding limits

This commit is contained in:
Arvid Norberg
2010-11-25 02:49:50 +00:00
parent 26a2beee5e
commit faccbd8ae3
7 changed files with 88 additions and 19 deletions

View File

@@ -428,7 +428,6 @@ namespace libtorrent
}
m_file_base.insert(m_file_base.begin() + dst, base);
}
}
void file_storage::optimize(int pad_file_limit)