gabrieldemian / vincenzo

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

Fix get_u32 on messages.rs #14

Open gabrieldemian opened 1 year ago

gabrieldemian commented 1 year 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"