1
0
mirror of https://github.com/facebook/zstd.git synced 2025-04-19 00:44:19 +03:00
zstd/tests/cli-tests/decompression/detectErrors.sh
Yann Collet b46236278a detect extraneous bytes in the Sequences section
when nbSeq == 0.

Reported by @ip7z
2023-06-13 11:43:45 -07:00

12 lines
185 B
Bash
Executable File

#!/bin/sh
set -e
GOLDEN_DIR="$ZSTD_REPO_DIR/tests/golden-decompression-errors/"
for file in "$GOLDEN_DIR"/*; do
zstd -t $file && die "should have detected an error"
done
exit 0