summaryrefslogtreecommitdiff
path: root/source4/lib/compression
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/compression')
-rw-r--r--source4/lib/compression/mszip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/compression/mszip.c b/source4/lib/compression/mszip.c
index 97b53f56ad..7a6371528c 100644
--- a/source4/lib/compression/mszip.c
+++ b/source4/lib/compression/mszip.c
@@ -341,7 +341,7 @@ static int32_t Zipinflate_codes(struct decomp_state *decomp_state,
ZIPNEEDBITS(e)
} while ((e = (t = t->v.t + ((uint32_t)b & Zipmask[e]))->e) > 16);
ZIPDUMPBITS(t->b)
- if (w >= 32768) break;
+ if (w >= CAB_BLOCKMAX) break;
if (e == 16) /* then it's a literal */
CAB(outbuf)[w++] = (uint8_t)t->v.n;
else /* it's an EOB or a length */