ladybird/Userland
Leonardo Duarte 335fae9a71 LibC: Return early in time_to_tm for large time_t
POSIX says that localtime should fail with EOVERFLOW if the result
cannot be represented, which is the case for most large (in absolute
value) time_t inputs, since they overflow (or underflow) tm_year, which
is an int. This patch introduces this functionality. Previously, tm_year
just overflowed (or underflowed) silently.

Incidentally, this partially fixes #12729 without solving the root
problem, which is that time_to_tm is linear in its input to determine
the number of years since epoch.

This means that the bash port mktime test no longer times-out in 60s,
but it still fails (faster) in some other place. Due to underlying issue
in the algorithm, the worst case inputs still take a couple of seconds
on my machine.
2022-04-19 10:06:23 -04:00
..
Applets Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
Applications Spreadsheet: Sort functions by name in the help window 2022-04-18 17:36:34 +02:00
Demos LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
DevTools Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
DynamicLoader Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Games Pong: Explicitly clear held keys in Game::reset() 2022-04-15 00:13:09 +02:00
Libraries LibC: Return early in time_to_tm for large time_t 2022-04-19 10:06:23 -04:00
Services Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
Shell Shell: Make program-based completion with no actual token possible 2022-04-18 19:53:10 +04:30
Utilities Utilities/profile: Call split_view() using StringView for command parts 2022-04-18 14:17:01 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00