added asserts to catch broken peer allocations and frees as well as disk buffer corruption

This commit is contained in:
Arvid Norberg
2010-07-18 19:28:22 +00:00
parent f93960884c
commit 9baa280b52
4 changed files with 79 additions and 0 deletions

View File

@@ -775,6 +775,7 @@ int main(int argc, char* argv[])
" -O Disallow disk job reordering\n"
" -P <host:port> Use the specified SOCKS5 proxy\n"
" -H Don't start DHT\n"
" -W <num peers> Set the max number of peers to keep in the peer list\n"
" "
"\n\n"
"TORRENT is a path to a .torrent file\n"
@@ -895,6 +896,7 @@ int main(int argc, char* argv[])
case 't': poll_interval = atoi(arg); break;
case 'F': refresh_delay = atoi(arg); break;
case 'H': start_dht = false; --i; break;
case 'W': settings.max_peerlist_size = atoi(arg); break;
case 'x':
{
FILE* filter = fopen(arg, "r");