From 9240ef6700f4536f01ddef23ba4987f964caa873 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:51:24 +0000 Subject: [PATCH] tests: ptx: add a robustness test case * tests/ptx/ptx-overrun.sh: Ensure input is processed without issue. https://github.com/coreutils/coreutils/pull/184 --- tests/ptx/ptx-overrun.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ptx/ptx-overrun.sh b/tests/ptx/ptx-overrun.sh index e0228d62d9..e8bdc6c7da 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. -- 2.47.3