From a71e22991be7b7d6c084ed08471c14debe31aecf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 Nov 1996 05:19:40 +0000 Subject: [PATCH] Add a test to exercize this fix. --- tests/sort/Test.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm index 17b2064760..a666d18550 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; -- 2.47.2