Wireshark-commits: [Wireshark-commits] master 53a3e53: Add bounds checks and fix a length argument.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=53a3e53fce30523d11ab3df319fba7b75d63076f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
53a3e53 by Guy Harris (guy@xxxxxxxxxxxx):
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@xxxxxxxxxxxx>
Actions performed:
from 25e417f Qt: Fix Confirm unsaved capture files preference.
adds 53a3e53 Add bounds checks and fix a length argument.
Summary of changes:
wiretap/ngsniffer.c | 49 ++++++++++++++++++++++++++++++++++---------------
1 file changed, 34 insertions(+), 15 deletions(-)