Stage 5 parse torrent file

Ah, thanks for adding detailed logs - this helps!

I’m not a C expert so my analysis here might be wrong, shouldn’t the value for realloc be multiplying by sizeof for the specific type?

I applied this diff:

Removed the debug logs and got tests to this point:

(The values are correct, the output format just needs to be adjusted to match what the tester expects)