Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 18 Mar 2017 17:10:28 +0100
From: Julien Ramseier <j.ramseier@...il.com>
To: musl@...ts.openwall.com
Subject: [PATCH] strptime fixes

I found several bugs in strptime:

1. tm_yday is off by one with %j (tm_yday range is 0-365 while %j is 1-366).
2. string pointer is not incremented when processing %p format.
3. calling strptime(..., "%C", tm), where tm->tm_year != 0, will result in a
   wrong value stored in tm_year.


Download attachment "strptime-%j-off-by-one.patch" of type "application/octet-stream" (365 bytes)

Download attachment "strptime-fix-%p-fmt.patch" of type "application/octet-stream" (613 bytes)

Download attachment "strptime-fix-%C-fmt.patch" of type "application/octet-stream" (1018 bytes)




- Julien


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.