summaryrefslogtreecommitdiff
path: root/miscutils/i2c_tools.c
diff options
context:
space:
mode:
authorSamuel Sapalski <samuel.sapalski@nokia.com>2021-03-03 16:31:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-03-31 15:00:27 +0200
commitdbd3b883a891f076911d752f56f7a906d5650a17 (patch)
treef8b84c9b30129efd424e6ff96c463e2384f5c28b /miscutils/i2c_tools.c
parent30ffa2bb15956d5779fd1984c698621386bae9c1 (diff)
decompress_gunzip: Fix DoS if gzip is corrupt1_32_stable
On certain corrupt gzip files, huft_build will set the error bit on the result pointer. If afterwards abort_unzip is called huft_free might run into a segmentation fault or an invalid pointer to free(p). In order to mitigate this, we check in huft_free if the error bit is set and clear it before the linked list is freed. Signed-off-by: Samuel Sapalski <samuel.sapalski@nokia.com> Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/i2c_tools.c')
0 files changed, 0 insertions, 0 deletions