summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-20 18:42:23 +0200
committerJim Meyering <jim@meyering.net>2007-07-20 18:42:23 +0200
commit366aaf59dcde9d3700346a94562151db6afb3be4 (patch)
treed65790a8e6d8ce7eb265905604707cca44bb8086 /tests
parent0cf61819479ad43533b6e24d769a8e85c7a17f11 (diff)
downloadcoreutils-366aaf59dcde9d3700346a94562151db6afb3be4.tar.xz
Document and add a test for today's sort bug fix.
* NEWS: Describe the bug fix. * tests/sort/Test.pm (obs-inval): Add a test for today's fix.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sort/Test.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm
index 8b160bddb..22e1ea42a 100755
--- a/tests/sort/Test.pm
+++ b/tests/sort/Test.pm
@@ -1,8 +1,7 @@
# -*-perl-*-
# Test "sort".
-# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
-# 2006 Free Software Foundation, Inc.
+# Copyright (C) 1996-1999, 2001-2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -282,6 +281,11 @@ my @tv = (
["bigfield", '-k 340282366920938463463374607431768211456',
"2\n1\n", "1\n2\n", 0],
+
+# Using an old-style key-specifying option like +1 with an invalid
+# ordering-option character would cause sort to try to free an invalid
+# (non-malloc'd) pointer. This bug affects coreutils-6.5 through 6.9.
+['obs-inval', '+1x', '', '', 2]
);
sub test_vector