Closed JaskaranSM closed 1 year ago
Thanks! Looks like an unsanitized input from a peer.
This looks related to https://github.com/anacrolix/torrent/issues/788.
The other issue didn't provide any actual values, but this one does. I suspect that overflow could be occuring during conversion between request struct and request indexes that is able to slip through the existing validity checks. I've added extra checks before that conversion occurs that should handle overflow. See f75989863cfc4abfc14c1b4ab9a634437569ef27.
Thanks, looks like fixed now :)
Download Progress:
Magnet:
I was checking the progress for this one it was going to 100% and 98.86% back and forth, In
client.WriteStatus,
I saw it had one piece missing and maybe it is getting it from the peers but the verification was failing thats why it was retrying. Just a wild guess. After some time I saw this panic. Interesting thing here is that panic happened on length 713 which also the total piece count for this torrent.