[PATCH v4] Ensure mktime sets errno on error (bug 23789)

Paul Eggert eggert@cs.ucla.edu
Mon Nov 5 07:55:00 GMT 2018


Paul Eggert wrote:
> 3. Please construct a third patch containing your mktime test case for glibc, 
> and we then apply that patch to glibc.

I looked at that test case and found some issues with it, e.g., it assumed a 
particular time_t width in some cases and assumed a particular error number in 
others. Attached is a revised test case that should fix the issues. For 
convenience I'm also attaching the same glibc code patch again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mktime-fix-EOVERFLOW-bug.patch
Type: text/x-patch
Size: 3741 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181105/7252a368/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-mktime-new-test-for-mktime-failure.patch
Type: text/x-patch
Size: 4157 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20181105/7252a368/attachment-0001.bin>


More information about the Libc-alpha mailing list