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.
This commit is contained in:
Lasse Collin 2008-04-24 17:30:51 +03:00
parent 641998c3e1
commit 7ab493924e
1 changed files with 1 additions and 1 deletions

View File

@ -26,8 +26,8 @@
typedef struct { typedef struct {
uint64_t low; uint64_t low;
uint64_t cache_size;
uint32_t range; uint32_t range;
uint32_t cache_size;
uint8_t cache; uint8_t cache;
} lzma_range_encoder; } lzma_range_encoder;