diff options
-rw-r--r-- | NEWS | 3 | ||||
m--------- | gnulib | 0 | ||||
-rwxr-xr-x | tests/misc/date.pl | 7 |
3 files changed, 10 insertions, 0 deletions
@@ -14,6 +14,9 @@ GNU coreutils NEWS -*- outline -*- when reading the SELinux context for a file. [bug introduced in coreutils-8.22] + date could crash or go into an infinite loop when parsing a malformed TZ="". + [bug introduced with the --date='TZ="" ..' parsing feature in coreutils-5.3.0] + head --lines=-0, when the input does not contain a trailing '\n', now copies all input to stdout. Previously nothing was output in this case. [bug introduced with the --lines=-N feature in coreutils-5.0.1] diff --git a/gnulib b/gnulib -Subproject 1c6bf3d204c0cbd664590bbdc30fdf756d9fdb6 +Subproject a10acfb1d2118f9a180181d3fed5399dbbe1df3 diff --git a/tests/misc/date.pl b/tests/misc/date.pl index 57c6c7282..40be4cab5 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -287,6 +287,13 @@ my @Tests = {ERR => "date: invalid date '\\260'\n"}, {EXIT => 1}, ], + + # From coreutils-5.3.0 to 8.22 inclusive + # this would either infinite loop or crash + ['invalid-TZ-crash', "-d 'TZ=\"\"\"'", + {ERR => "date: invalid date 'TZ=\"\"\"'\n"}, + {EXIT => 1}, + ], ); # Repeat the cross-dst test, using Jan 1, 2005 and every interval from 1..364. |