libx52/lib
nirenjan b6ebdef7ef Handle time out of range in libx52_set_clock
Prior to this change, the assumption was that localtime/gmtime would
never fail, regardless of the time value provided to it. However,
testing on an Ubuntu 20.04 machine revealed that the representable
range of time_t was about 56 bits, values that exceed a 56 bit
representation would cause localtime/gmtime to return a NULL pointer.

This change replaces the use of localtime/gmtime with their
corresponding thread-safe variants, and checks the return value against
NULL. If it matches a NULL value, then it will return an error and not
update the clocks.
2020-06-04 15:34:03 -07:00
..
libusbx52 Clear warning when linking x52test_log_actions 2020-06-02 07:50:51 -07:00
libx52 Handle time out of range in libx52_set_clock 2020-06-04 15:34:03 -07:00
libx52util Update Doxygen comments 2020-04-18 02:21:12 -07:00
Makefile.am Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00