zstd: Check errors right affer compressing/decompressing
commitfd3f9e858045068789603656f4fbd491c2b7dcbc
authorDavid Goulet <dgoulet@torproject.org>
Mon, 14 Aug 2023 15:03:47 +0000 (14 11:03 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 14 Aug 2023 15:05:23 +0000 (14 11:05 -0400)
tree1b143e8b287baf8a5b8aa044acac6828372d61a1
parent78cb7616123cdddc7bcceb4d9a38367bb22217a7
zstd: Check errors right affer compressing/decompressing

Considering a compression bomb before looking for errors led to false negative
log warnings. Instead, it is possible the work failed for whatever reasons
which is not indicative of a compression bomb.

Fixes #40739

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40739 [new file with mode: 0644]
src/lib/compress/compress_zstd.c