kc3-lang/libevent/evutil_time.c

Branch :


Log

Author Commit Date CI Message
148d12ad 2019-09-19 15:24:51 evutil_time: detect and use _gmtime64_s()/_gmtime64()
35258a1f 2018-06-19 10:18:46 Replace all EVENT_HAVE with EVENT__HAVE (EVENT__HAVE_USLEEP)
33baa4e5 2018-03-28 08:25:28 Avoid possible SEGVs in select() (in unit tests) Per the POSIX definition of select(): http://pubs.opengroup.org/onlinepubs/009696699/functions/pselect.html "Upon successful completion, the select() function may modify the object pointed to by the timout argument." If "struct timeval" pointer is a "static const", it could potentially be allocated in a RO text segment. The kernel would then try to copy back the modified value (with the time remaining) into a read-only address and SEGV. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Closes: #614
4798de6c 2016-12-22 14:55:33 test: fix util/date_rfc1123 under win32 Refs: #417 v2: check when gmtime() returns NULL v3: fix overflow cases
4545807d 2016-12-19 10:22:51 Fix UB in evutil_date_rfc1123() As pointed in https://github.com/libevent/libevent/pull/417#issuecomment-267860738 "code is unsafe because in evutil_date_rfc1123() the pointer to the automatic variable struct tm cur is used outside the scope it defined." Checked with `clang -fsanitize=address -fsanitize-address-use-after-scope` and test that call evutil_date_rfc1123() with tm==NULL
db60ade8 2016-11-10 21:58:15 http: do not use local settings for Date header
3e75194c 2016-12-06 11:58:16 evutil_time: include <unistd.h> when there is only sleep()/usleep()
f2645f80 2014-11-19 12:18:05 Implement new/free for struct evutil_monotonic_timer and export monotonic time functions
911abf3d 2013-08-19 10:11:21 Check CLOCK_MONOTONIC_* at runtime if needed. (We need this to avoid compile errors on cygwin. Fixes github issue 75.)
85a40040 2013-05-01 13:37:57 Add regress_finalize to makefile.nmake