Stub for offtopicness
Show HN: I wrote a BitTorrent Client from scratch
11–20 of 68 posts
[dead]
Re: Show HN: I wrote a BitTorrent Client from scratch
#12Great work! Just an FYI, you might want to limit the dynamic allocation size in the bencode decoder: since it's untrusted input (either from torrent or announce), a malicious input could DoS the client by requesting extremely large allocations during string parsing. A good upper bound could be the remaining length of the input, as a well formed torrent can't contain a string longer than the rest of the file.
Re: Show HN: I wrote a BitTorrent Client from scratch
#13Stub for offtopicness
[flagged]
Re: Show HN: I wrote a BitTorrent Client from scratch
#14Great work! Just an FYI, you might want to limit the dynamic allocation size in the bencode decoder: since it's untrusted input (either from torrent or announce), a malicious input could DoS the client by requesting extremely large allocations during string parsing. A good upper bound could be the remaining length of the input, as a well formed torrent can't contain a string longer than the rest of the file.
thanks for pointing this out. I've added this in my to-dos.
Re: Show HN: I wrote a BitTorrent Client from scratch
#15Very cool!
This brings me back to college. We did this as our final project for our networking class at Georgia Tech.
I've long lost the code for this, but the lessons learned have lived on :)
Projects like these are great ways to learn new languages too!
Re: Show HN: I wrote a BitTorrent Client from scratch
#16Stub for offtopicness
sounds very cool. Good luck!
Re: Show HN: I wrote a BitTorrent Client from scratch
#17Stub for offtopicness
[flagged]
Re: Show HN: I wrote a BitTorrent Client from scratch
#18Re: Show HN: I wrote a BitTorrent Client from scratch
#19Re: Show HN: I wrote a BitTorrent Client from scratch
#20[dead]