aboutsip / pkts

Pure java based pcap library capable of reading and writing to/from pcaps.
Other
198 stars 92 forks source link

Ensure a valid PCAP length before trying to frame it #78

Closed epall closed 6 years ago

epall commented 6 years ago

While I was working on ChannelBuffer, I wound up catching a bug during decoding thanks to length being negative. This is a reasonable thing to check in general as a minimal sanity check of a PCAP header.