Add bounds checks and fix a length argument.
authorGuy Harris <guy@alum.mit.edu>
Sun, 20 Dec 2015 23:18:37 +0000 (15:18 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sun, 20 Dec 2015 23:19:23 +0000 (23:19 +0000)
commit53a3e53fce30523d11ab3df319fba7b75d63076f
treea5f6a1f09f4c8ac47225fb6714ba9362662823ce
parent25e417f01a25e3c862135659f7a2df50f2c1e61a
Add bounds checks and fix a length argument.

Before reading the record header of a REC_FRAME{2,4,6} record, make sure
the record length is >= the length of that header.

Whe calling fix_pseudo_header(), pass the actual length of the packet
data, not the remaining length of the record (which may include
padding), so we don't read past the end of the packet data.

Bug: 11827
Change-Id: I1c63a4cb014c4616ffdd202660e68c576f266872
Reviewed-on: https://code.wireshark.org/review/12756
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/ngsniffer.c