]> git.ipfire.org Git - thirdparty/zstd.git/commit
Limit range of operations on Indexes in 32-bit mode 4129/head
authorYann Collet <cyan@fb.com>
Wed, 21 Aug 2024 17:53:25 +0000 (10:53 -0700)
committerYann Collet <cyan@fb.com>
Wed, 21 Aug 2024 18:03:43 +0000 (11:03 -0700)
commit09cb37cbb1be014756fbc00d3c5db8eaec20f32d
treec9751264c5d13cc620f93a2ea20838174867d3aa
parentad038d8768b36dc238d31dbf5f40c2a21339931a
Limit range of operations on Indexes in 32-bit mode

and use unsigned type.
This reduce risks that an operation produces a negative number when crossing the 2 GB limit.
lib/compress/zstd_compress_internal.h