Don't fail if a pcap-NG PB or EPB has caplen > actual len.
authorGuy Harris <guy@alum.mit.edu>
Fri, 25 Apr 2014 17:44:11 +0000 (10:44 -0700)
committerGuy Harris <guy@alum.mit.edu>
Fri, 25 Apr 2014 17:44:47 +0000 (17:44 +0000)
commit6d6094e3498254de69f4878502a97b7fa3028207
tree9c5d4ae7d4fd99b9befa79546cdf2234cfb6bb3f
parent83fe3572c5d21b38cebf19ab07b2b10c1fa0816a
Don't fail if a pcap-NG PB or EPB has caplen > actual len.

We don't fail for other file types; there's no point in failing for
pcap-NG.  wtap_read() will ensure that caplen <= len.

Make wtap_seek_read() ensure that caplen <= len as well.

Fixes bug 10037.

Change-Id: I41fbcf54341ea0429cef875442ea1f1377177a5f
Reviewed-on: https://code.wireshark.org/review/1353
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/pcapng.c
wiretap/wtap.c