Skip to content
Snippets Groups Projects
Commit 35208f70 authored by W. Felix Handte's avatar W. Felix Handte
Browse files

Add Test Validating Stack is not Executable in playTests.sh

parent 9a9d1ec6
No related branches found
No related tags found
No related merge requests found
......@@ -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.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"
ln -sf "$ZSTD_BIN" zstdcat
rm -f tmp_grep
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment