gabrieldemian / vincenzo

A BitTorrent client with vim-like keybindings and a terminal based UI.
https://github.com/gabrieldemian/vincenzo
MIT License
136 stars 8 forks source link

Fix get_u32 on messages.rs #14

Open gabrieldemian opened 10 months ago

gabrieldemian commented 10 months ago

"when you use .get_u32() like here, your code will panic on incorrect packets. There are bugged clients out there, crashing the whole thing on a single malformed packet isn't a good idea"