]> granicus.if.org Git - xz/commitdiff
Use 64-bit integer as range encoder's cache size. This fixes a
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Apr 2008 14:30:51 +0000 (17:30 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Apr 2008 14:30:51 +0000 (17:30 +0300)
theoretical data corruption, which should be very hard to trigger
even intentionally.

src/liblzma/rangecoder/range_encoder.h

index 113f38a4e6f9e5d8e7756f9761fe5a06e7999d45..b216e6487ac5856924bb6739f17cf24fb8e07954 100644 (file)
@@ -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;