summaryrefslogtreecommitdiff
path: root/tests/sort/Test.pm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-11-02 05:19:40 +0000
committerJim Meyering <jim@meyering.net>1996-11-02 05:19:40 +0000
commita71e22991be7b7d6c084ed08471c14debe31aecf (patch)
tree110be58f347dad763859fe827d7f661ba27a526c /tests/sort/Test.pm
parentd74d789bea2daf1f4a3f42969a97451961cb258a (diff)
downloadcoreutils-a71e22991be7b7d6c084ed08471c14debe31aecf.tar.xz
Add a test to exercize this fix.
Diffstat (limited to 'tests/sort/Test.pm')
-rwxr-xr-xtests/sort/Test.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm
index 17b206476..a666d1855 100755
--- a/tests/sort/Test.pm
+++ b/tests/sort/Test.pm
@@ -127,6 +127,10 @@ use strict;
"'s-Gravenhage\nAag\naagtappels\naëroclub\néminence\nüberhaupt\n",
0],
+# This provokes a one-byte memory overrun of a malloc'd block for versions
+# of sort from textutils-1.19p and before.
+["17", '-c', "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", "", 0],
+
);
1;