From a71e22991be7b7d6c084ed08471c14debe31aecf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 Nov 1996 05:19:40 +0000 Subject: Add a test to exercize this fix. --- tests/sort/Test.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/sort/Test.pm') 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; -- cgit v1.2.3-70-g09d2