Wireshark-commits: [Wireshark-commits] master d80acae: tvbuff: make tvb_bytes_exist fail with negat
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d80acae40d14efeb857258ca923637b590dd6be9
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
d80acae by Peter Wu (peter@xxxxxxxxxxxxx):
tvbuff: make tvb_bytes_exist fail with negative values
tvb_generic_clone_offset_len uses tvb_bytes_exist to check that the
requested tvb data is actually available. It did not expect negative
values, that would result in an overly large memory allocation.
Bug: 14678
Change-Id: Ie80095a381e55ca5dbbd5c9d835243549d0b212e
Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7179
Reviewed-on: https://code.wireshark.org/review/27526
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
Actions performed:
from 17647c4 fip: avoid tvb_bytes_exist with negative length
adds d80acae tvbuff: make tvb_bytes_exist fail with negative values
Summary of changes:
epan/tvbuff.c | 7 +++++++
1 file changed, 7 insertions(+)