URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b82a9a3f95f244dfbffa932b1b88de6e10157ad8
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark
Commits:
b82a9a3 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>
(cherry picked from commit d80acae40d14efeb857258ca923637b590dd6be9)
Reviewed-on: https://code.wireshark.org/review/27533
Actions performed:
from d93f7b8 dns: fix null pointer deref for empty name in SRV record
adds b82a9a3 tvbuff: make tvb_bytes_exist fail with negative values
Summary of changes:
epan/tvbuff.c | 7 +++++++
1 file changed, 7 insertions(+)