mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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
This commit is contained in:
1 parent
ddb8b78a2c
commit
9240ef6700
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user