summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2022-04-08 11:14:51 +0200
committerQuentin Carbonneaux2022-04-08 12:14:41 +0200
commitc78347fedf40bb8a6a374b9e9c4012a5621caf1e (patch)
tree35b80fa5f5e7c883604df32855ae8f9a4b8d6638
parentb0c8e46e5450d13a7f0c87cb6891edcf2e8bc973 (diff)
do not inflate more than Maxblk
-rw-r--r--sdar/slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdar/slice.c b/sdar/slice.c
index 2e4f4f5..5dc7c2c 100644
--- a/sdar/slice.c
+++ b/sdar/slice.c
@@ -131,7 +131,7 @@ slinflate(Slice *si, Slice sd)
sz = LZ4_decompress_safe(
(char*)sd.buf, (char*)si->buf,
- sd.len, Bufdat);
+ sd.len, Maxblk);
if (sz < 0)
return 1;
si->len = sz;