Add a test to exercize this fix.
authorJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 05:19:40 +0000 (05:19 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 05:19:40 +0000 (05:19 +0000)
tests/sort/Test.pm

index 17b206476073a0368ada9baa2e229e59665ca729..a666d18550c2d6a361807860743c25ce80f1f6f5 100755 (executable)
@@ -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;