ystero-dev / scalpel

Packet Dissection and sculpting in Rust
Other
3 stars 6 forks source link

Fixed a couple of issues that caused panic during DNS decode #17

Closed gabhijit closed 2 years ago

gabhijit commented 2 years ago

The issue is perhaps due to IP fragmentation where the offset in the DNS record is higher than the current slice length. This caused panic in DNS handling.

Also, similar issue occurred while trying to get a string from utf_8 (also likely due to fragmentation).