Ondřej Surý
2392827a43
Add more validity checks to the isc_time API
...
This commits backport few things from the 64-bit time branch:
* Add VALID_TIME() macro that checks the valid range for seconds and
nanoseconds in one go
* Add internal TIME_S_MAX defined to UINT_MAX, so we can change the
maximum range for seconds in one place.
* Add more specific buffer sizes for formatting the dates and require
the buffers passed to the formatting functions to be at least that
big.
* When error happens when formatting the string, always return a valid
buffer with formatted mock datetime string instead of garbage.
Because the formatting functions doesn't return status, the caller
could print garbage (unterminated string).
2024-12-12 17:35:20 -08:00
..
2024-12-12 17:35:20 -08:00
2024-12-05 15:40:48 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-12-05 14:17:07 +01:00
2024-11-26 11:22:33 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-09-12 12:09:45 +00:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-10-16 14:03:14 +03:00
2024-12-11 17:11:32 +00:00
2024-09-12 12:09:45 +00:00
2024-12-10 19:18:49 +00:00
2024-10-16 14:03:14 +03:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-08-05 07:31:39 +00:00
2024-11-27 15:03:27 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-10-16 04:19:16 +00:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-12-08 11:14:37 +00:00
2024-12-08 11:14:37 +00:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-22 15:00:55 +01:00
2024-12-09 13:10:21 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-12-12 17:35:20 -08:00
2024-04-02 10:35:56 +02:00
2024-11-26 11:22:33 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00
2024-11-19 12:27:22 +01:00