From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 6 Feb 2026 13:51:24 +0000 (+0000) Subject: tests: ptx: add a robustness test case X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9240ef6700f4536f01ddef23ba4987f964caa873;p=thirdparty%2Fcoreutils.git 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 --- 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.