acaa8b3e8b
total_len is already rounded up, so the `+ 3` is not needed. And even if it was, the calculation should have been `((total_len + 3) / 4)`. `(total_len + 3 / 4)` is equivalent to `total_len` and can overflow the slice, leading to a panic which can easily be triggered by sending large ICMP ECHO packets to the device. |
||
---|---|---|
.. | ||
countries.rs | ||
events.rs | ||
fmt.rs | ||
lib.rs | ||
structs.rs |