Wireshark-commits: [Wireshark-commits] master-2.0 7ea63cf: Fix buffer overrun in zlib decompression
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7ea63cf9fe49bd58c4507ff583aac17a549a9e87
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
7ea63cf by Peter Wu (peter@xxxxxxxxxxxxx):
Fix buffer overrun in zlib decompression
After updating next_in (to remove the gzip header), avail_in must also
be updated. Failing to do makes zlib read past the input buffer. In
theory this would resukt in a buffer overrun of at most double the input
length, in practice zlib returns as soon as the compression fails (after
reading a few bytes).
Bug: 11548
Change-Id: If71691a2846338f46d866964a77cc4e74a9b61dd
Reviewed-on: https://code.wireshark.org/review/12038
Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
(cherry picked from commit cec0593ae6c3bca65eff65741c2a10f3de3e0afe)
Reviewed-on: https://code.wireshark.org/review/12137
Actions performed:
from b9d8d3c Lua: fix URL to documentation
adds 7ea63cf Fix buffer overrun in zlib decompression
Summary of changes:
epan/tvbuff_zlib.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)