libtins icon indicating copy to clipboard operation
libtins copied to clipboard

Exception thrown when parsing truncated transport-layer payload in IPv6 packets

Open SuperBigYB opened this issue 7 months ago • 0 comments

When parsing a pcap file containing IPv6 packets with truncated transport-layer payloads, libtins throws an exception. However, this packet has a complete UDP header.

  Tins::FileSniffer sniffer("ipv6_truncated.pcap");
  Tins::Packet pkt = sniffer.next_packet();
  // pkt.pdu() is nullptr

Sample pcap: ipv6_truncated.pcap.zip

SuperBigYB avatar May 12 '25 02:05 SuperBigYB