mirror of
https://github.com/facebook/zstd.git
synced 2025-12-08 00:03:24 -05:00
Add Test Validating Stack is not Executable in playTests.sh
This commit is contained in:
parent
9a9d1ec6f4
commit
35208f702f
@ -304,6 +304,15 @@ zstd -d -f tmp_corrupt.zst --no-check
|
|||||||
zstd -d -f tmp_corrupt.zst --check --no-check # final flag overrides
|
zstd -d -f tmp_corrupt.zst --check --no-check # final flag overrides
|
||||||
zstd -d -f tmp.zst --no-check
|
zstd -d -f tmp.zst --no-check
|
||||||
|
|
||||||
|
if [ "$isWindows" = false ]; then
|
||||||
|
if [ -n "$(which readelf)" ]; then
|
||||||
|
println "test: check if binary has executable stack"
|
||||||
|
file "$ZSTD_BIN"
|
||||||
|
readelf -lW "$ZSTD_BIN"
|
||||||
|
readelf -lW "$ZSTD_BIN" | grep 'GNU_STACK .* RW ' || die "zstd binary has executable stack!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
println "\n===> zstdgrep tests"
|
println "\n===> zstdgrep tests"
|
||||||
ln -sf "$ZSTD_BIN" zstdcat
|
ln -sf "$ZSTD_BIN" zstdcat
|
||||||
rm -f tmp_grep
|
rm -f tmp_grep
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user