Project

General

Profile

Bug #12348

gmtime/localtime erroneously fail EOVERFLOW with the minimum possible input value

Added by Rich Lowe 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

When fed the time_t representing the minimal possible value, we fail because underflow because 'y' ends up with a value one too low, and so we fail EOVERFLOW.

You can reproduce by feeding timegm a `struct tm` with an INT_MIN year.

No data to display

Also available in: Atom PDF