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

Paul Eggert eggert@cs.ucla.edu
Thu Oct 25 09:16:00 GMT 2018


Albert ARIBAUD (3ADEV) wrote:
> +  if (result == -1)
> +    {
> +      __set_errno(EOVERFLOW);
> +    }

This patch is not correct since -1 is a valid time_t value, and a result of -1 
does not necessarily indicate time_t overflow.



More information about the Libc-alpha mailing list