zfs/module/zstd/lib
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
..
common Re-apply 6ba2e72b, silence lint 2022-03-01 13:56:00 -08:00
compress zstd: [superblock] Add defensive assert and bounds check 2022-11-29 10:04:43 -08:00
decompress Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00