From 7ab493924e0ed590a5121a15ee54038d238880d3 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 24 Apr 2008 17:30:51 +0300 Subject: [PATCH] Use 64-bit integer as range encoder's cache size. This fixes a theoretical data corruption, which should be very hard to trigger even intentionally. --- src/liblzma/rangecoder/range_encoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblzma/rangecoder/range_encoder.h b/src/liblzma/rangecoder/range_encoder.h index 113f38a4..b216e648 100644 --- a/src/liblzma/rangecoder/range_encoder.h +++ b/src/liblzma/rangecoder/range_encoder.h @@ -26,8 +26,8 @@ typedef struct { uint64_t low; + uint64_t cache_size; uint32_t range; - uint32_t cache_size; uint8_t cache; } lzma_range_encoder;