- dpkg-deb -x "$i" "$D"
- find "$D" -type f | while read f; do
- # ignore non-ELF files
- readelf -h "$f" > /dev/null 2>&1 || continue
- nm -D "$f" | grep -q __stack_chk_fail || {
- echo "$i: ${f#$D} not built with SSP"
- }
- done
+dpkg-deb -x "$1" "$D"
+find "$D" -type f | while read f; do
+ # ignore non-ELF files
+ readelf -h "$f" > /dev/null 2>&1 || continue
+ strings "$f" | grep -q __stack_chk_fail || {
+ echo "$1: ${f#$D} not built with SSP"
+ }