From: Jim Meyering Date: Sat, 2 Nov 1996 05:19:40 +0000 (+0000) Subject: Add a test to exercize this fix. X-Git-Tag: TEXTUTILS-1_19q~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a71e22991be7b7d6c084ed08471c14debe31aecf;p=thirdparty%2Fcoreutils.git Add a test to exercize this fix. --- 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;