diff --git a/tests/ptx/ptx-overrun.sh b/tests/ptx/ptx-overrun.sh index e0228d62d..e8bdc6c7d 100755 --- a/tests/ptx/ptx-overrun.sh +++ b/tests/ptx/ptx-overrun.sh @@ -18,6 +18,9 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ ptx +# Ensure this input is processed +printf '%s' '012345678901234567890123456789🛠' | ptx || fail=1 + # Trigger a heap-clobbering bug in ptx from coreutils-6.10 and earlier. # Using a long file name makes an abort more likely. # Even with no file name, valgrind detects the buffer overrun.