mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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:
parent
641998c3e1
commit
7ab493924e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue