]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(bignum): New test to demonstrate that large
authorJim Meyering <jim@meyering.net>
Mon, 20 Jan 2003 18:19:50 +0000 (18:19 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 20 Jan 2003 18:19:50 +0000 (18:19 +0000)
format widths no longer smash strftime's stack and cause infloop.

tests/date/Test.pm

index c0545693aca120ca5a57398fa717ce3f6424def3..2070a2430b4b76643d9ea231b74fac7741e418af 100644 (file)
@@ -138,6 +138,10 @@ sub test_vector
      ['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt", {},
       "2000-06-15 09:43:57", 0],
 
+     # This would infloop (or appear to) prior to coreutils-4.5.5,
+     # due to a bug in strftime.c.
+     ['bignum', "-d '1999-06-01' +%3004Y", {}, '0' x 3000 . '1999', 0],
+
      # FIXME: add a lot more...
      );