From: Bimba Shrestha Date: Wed, 18 Sep 2019 20:29:05 +0000 (-0700) Subject: Adding 4 blocks to FSE_BLOCKBOUND() in lib/common (different from last week) X-Git-Tag: v1.4.4~1^2~45^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b6abb896fb05027f242c526bb54719e124b24f;p=thirdparty%2Fzstd.git Adding 4 blocks to FSE_BLOCKBOUND() in lib/common (different from last week) --- diff --git a/lib/common/fse.h b/lib/common/fse.h index 811c670bd..deac3f991 100644 --- a/lib/common/fse.h +++ b/lib/common/fse.h @@ -308,7 +308,7 @@ If there is an error, the function will return an error code, which can be teste *******************************************/ /* FSE buffer bounds */ #define FSE_NCOUNTBOUND 512 -#define FSE_BLOCKBOUND(size) (size + (size>>7)) +#define FSE_BLOCKBOUND(size) (size + (size>>7) + 4 /* constant for initial fse states */) #define FSE_COMPRESSBOUND(size) (FSE_NCOUNTBOUND + FSE_BLOCKBOUND(size)) /* Macro version, useful for static allocation */ /* It is possible to statically allocate FSE CTable/DTable as a table of FSE_CTable/FSE_DTable using below macros */