mirror_zfs/module/zstd/lib/compress
Nick Terrell 466cf54ecf zstd: [superblock] Add defensive assert and bounds check
The bound check condition should always be met because we selected
`set_basic` as our encoding type. But that code is very far away, so
assert it is true so if it is ever false we can catch it, and add a
bounds check.

Port of facebook/zstd@1047097dad

Reported-by: Coverity (CID 1524446)
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Ported-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14212
2022-11-29 10:04:43 -08:00
..
fse_compress.c Silence unused-but-set-variable warnings 2022-04-29 14:21:11 -07:00
hist.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
hist.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
huf_compress.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_internal.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_literals.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_literals.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_sequences.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_sequences.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_superblock.c zstd: [superblock] Add defensive assert and bounds check 2022-11-29 10:04:43 -08:00
zstd_compress_superblock.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_cwksp.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_double_fast.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_double_fast.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_fast.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_fast.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_lazy.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_lazy.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_ldm.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_ldm.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_opt.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_opt.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00