From: Sean Purcell Date: Wed, 12 Apr 2017 21:09:13 +0000 (-0700) Subject: Reduce the limit on frame decompressed size to 2 GB X-Git-Tag: v1.3.0~1^2~47^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2785b28e05d715a99fa66beee12bf47422fb8601;p=thirdparty%2Fzstd.git Reduce the limit on frame decompressed size to 2 GB --- diff --git a/contrib/seekable_format/zstd_seekable.h b/contrib/seekable_format/zstd_seekable.h index f389ec973..2e148ebf3 100644 --- a/contrib/seekable_format/zstd_seekable.h +++ b/contrib/seekable_format/zstd_seekable.h @@ -11,8 +11,8 @@ static const unsigned ZSTD_seekTableFooterSize = 9; #define ZSTD_SEEKABLE_MAXFRAMES 0x8000000U -/* 0xFE03F607 is the largest number x such that ZSTD_compressBound(x) fits in a 32-bit integer */ -#define ZSTD_SEEKABLE_MAX_FRAME_DECOMPRESSED_SIZE 0xFE03F607 +/* Limit the maximum size to avoid any potential issues storing the compressed size */ +#define ZSTD_SEEKABLE_MAX_FRAME_DECOMPRESSED_SIZE 0x80000000U /*-**************************************************************************** * Seekable Format