tvb_lz77huff: reduce stack memory usage
commit22e74ec018ffd42fd02c68bc3587a53362efe078
authorAurelien Aptel <aaptel@suse.com>
Tue, 16 Jul 2019 09:08:13 +0000 (16 11:08 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 16 Jul 2019 21:42:52 +0000 (16 21:42 +0000)
tree7258745f8c6a1e7736197c7311e2a82d2af52e1f
parent6a7b01255a95740900a402e1ac9d66ab771310da
tvb_lz77huff: reduce stack memory usage

clang errs about the stack frame size being too big.

* use indexes instead of pointers
* use guint8 instead of gboolean (== int)
* remplace hard coded 512 with #define

Change-Id: Idae70677f20e88ac8bba93899573e0137b9a3d7e
Fixes: 0db39ae59a ("smb2: add support for decompression")
Reviewed-on: https://code.wireshark.org/review/33965
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
epan/tvbuff_lz77huff.c