aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff_zstd.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/tvbuff_zstd.c')
-rw-r--r--epan/tvbuff_zstd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/tvbuff_zstd.c b/epan/tvbuff_zstd.c
index 916ac7edf3..ced3daac46 100644
--- a/epan/tvbuff_zstd.c
+++ b/epan/tvbuff_zstd.c
@@ -70,6 +70,11 @@ tvbuff_t *tvb_uncompress_zstd(tvbuff_t *tvb, const int offset, int comprlen)
count++;
DISSECTOR_ASSERT_HINT(count < MAX_LOOP_ITERATIONS, "MAX_LOOP_ITERATIONS exceeded");
}
+ if (rc > 0)
+ {
+ // There is extra data that was not decompressed.
+ goto end;
+ }
ok = true;
end: