From: Fotis Xenakis Date: Fri, 12 Mar 2021 21:07:15 +0000 (+0200) Subject: Fix seek table descriptor check when loading X-Git-Tag: v1.4.10~22^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21697b9c9edc672f62814b26477cb338d368f178;p=thirdparty%2Fzstd.git Fix seek table descriptor check when loading --- diff --git a/contrib/seekable_format/zstdseek_decompress.c b/contrib/seekable_format/zstdseek_decompress.c index 748e76a3f..b78c6341a 100644 --- a/contrib/seekable_format/zstdseek_decompress.c +++ b/contrib/seekable_format/zstdseek_decompress.c @@ -332,7 +332,7 @@ static size_t ZSTD_seekable_loadSeekTable(ZSTD_seekable* zs) checksumFlag = sfd >> 7; /* check reserved bits */ - if ((checksumFlag >> 2) & 0x1f) { + if ((sfd >> 2) & 0x1f) { return ERROR(corruption_detected); } }