]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix seek table descriptor check when loading
authorFotis Xenakis <foxen@windowslive.com>
Fri, 12 Mar 2021 21:07:15 +0000 (23:07 +0200)
committerFotis Xenakis <foxen@windowslive.com>
Fri, 12 Mar 2021 21:07:15 +0000 (23:07 +0200)
contrib/seekable_format/zstdseek_decompress.c

index 748e76a3f6afce96766c68f578faab99245b39af..b78c6341ad9b137e82cd69d58cef07807bcf3f23 100644 (file)
@@ -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);
     }   }