mirror of
https://github.com/facebook/zstd.git
synced 2025-10-07 00:12:40 -04:00
Reduce the limit on frame decompressed size to 2 GB
This commit is contained in:
parent
5ee1135f30
commit
2785b28e05
@ -11,8 +11,8 @@ static const unsigned ZSTD_seekTableFooterSize = 9;
|
|||||||
|
|
||||||
#define ZSTD_SEEKABLE_MAXFRAMES 0x8000000U
|
#define ZSTD_SEEKABLE_MAXFRAMES 0x8000000U
|
||||||
|
|
||||||
/* 0xFE03F607 is the largest number x such that ZSTD_compressBound(x) fits in a 32-bit integer */
|
/* Limit the maximum size to avoid any potential issues storing the compressed size */
|
||||||
#define ZSTD_SEEKABLE_MAX_FRAME_DECOMPRESSED_SIZE 0xFE03F607
|
#define ZSTD_SEEKABLE_MAX_FRAME_DECOMPRESSED_SIZE 0x80000000U
|
||||||
|
|
||||||
/*-****************************************************************************
|
/*-****************************************************************************
|
||||||
* Seekable Format
|
* Seekable Format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user