Summary: | getdate() doesn't ignore trailing whitespaces | ||
---|---|---|---|
Product: | glibc | Reporter: | Siddhesh Poyarekar <siddhesh> |
Component: | libc | Assignee: | Siddhesh Poyarekar <siddhesh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | drepper.fsp |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Siddhesh Poyarekar
2013-04-08 12:28:21 UTC
Fixed in master: commit abe7f530bf5c741fe6f0658da7be59d8db168f7f Author: Siddhesh Poyarekar <siddhesh@redhat.com> Date: Wed Apr 10 11:31:46 2013 +0530 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. |