about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-04-10 11:31:46 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-04-10 11:31:46 +0530
commitabe7f530bf5c741fe6f0658da7be59d8db168f7f (patch)
treeb57ba83c808a98b42b5b9d548afc51ae6962982d /ChangeLog
parent61c23e6234db0e94cd850e88536401910ac61516 (diff)
downloadglibc-abe7f530bf5c741fe6f0658da7be59d8db168f7f.tar.gz
glibc-abe7f530bf5c741fe6f0658da7be59d8db168f7f.tar.xz
glibc-abe7f530bf5c741fe6f0658da7be59d8db168f7f.zip
Accept leading and trailing spaces in getdate input string
Fixes #15346.

The POSIX description of getdate allows for extra spaces in the
getdate input string.  __getdate_r uses strptime internally, which
works fine with extra spaces between format strings (and hence within
an input string) but not with leading and trailing spaces.  So we trim
off the leading and trailing spaces before we pass it on to strptime.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 20be985630..411522580f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
+	    Roland McGrath  <roland@hack.frob.com>
+	    Ondrej Bilka  <neleai@seznam.cz>
+
+	[BZ #15346]
+	* time/getdate.c: Include ctype.h and alloca.h.
+	(__getdate_r): Trim leading and trailing spaces of input.
+	* time/tst-getdate.c (tests): Add tests with leading and
+	trailing spaces.
+
 2013-04-08  Roland McGrath  <roland@hack.frob.com>
 
 	[BZ #14280]