|
Revision tags: release-2.2.1-alpha, release-2.1.12-stable |
|
| #
a8219143 |
| 27-Apr-2020 |
Nick Grifka <[email protected]> |
evutil_time: improve evutil_gettimeofday on Windows
If present, use GetSystemTimePreciseAsFileTime instead of GetSystemTimeAsFileTime. Available since Windows 8.
(cherry picked from commit f0b3160f
evutil_time: improve evutil_gettimeofday on Windows
If present, use GetSystemTimePreciseAsFileTime instead of GetSystemTimeAsFileTime. Available since Windows 8.
(cherry picked from commit f0b3160f8ce7fbd411493dcd023f562f4f9d17ee)
show more ...
|
| #
d42240d1 |
| 27-Dec-2019 |
yuangongji <[email protected]> |
evutil_time: Implements usleep() using wait funtion on Windows
(cherry picked from commit 6412f34f242e9b5b87f0378715baf97ba0bf1a8c)
|
| #
f4a6152c |
| 19-Sep-2019 |
yuangongji <[email protected]> |
evutil_time: detect and use _gmtime64_s()/_gmtime64()
(cherry picked from commit 148d12ad31b03a813f4ffd9df14a85392aa74130)
|
|
Revision tags: release-2.1.11-stable, release-2.1.10-stable, release-2.1.9-beta, release-2.0.23-beta |
|
| #
85fed75f |
| 19-Jun-2018 |
Azat Khuzhin <[email protected]> |
Replace all EVENT_HAVE with EVENT__HAVE (EVENT__HAVE_USLEEP)
(cherry picked from commit 35258a1f4e09d9e7fcb003cd0572343670180495)
|
| #
8818c86c |
| 28-Mar-2018 |
Philip Prindeville <[email protected]> |
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
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 <[email protected]> Closes: #614 (cherry picked from commit 33baa4e59fbf9432d77a19c6b2b45402580b79a5)
show more ...
|
|
Revision tags: release-2.1.8-stable |
|
| #
4798de6c |
| 22-Dec-2016 |
Azat Khuzhin <[email protected]> |
test: fix util/date_rfc1123 under win32
Refs: #417 v2: check when gmtime() returns NULL v3: fix overflow cases
|
| #
4545807d |
| 19-Dec-2016 |
Azat Khuzhin <[email protected]> |
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 v
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
show more ...
|
| #
db60ade8 |
| 10-Nov-2016 |
Vis Virial <[email protected]> |
http: do not use local settings for Date header
|
| #
3e75194c |
| 06-Dec-2016 |
Azat Khuzhin <[email protected]> |
evutil_time: include <unistd.h> when there is only sleep()/usleep()
|
|
Revision tags: release-2.1.7-rc, release-2.1.6-beta, release-2.0.22-stable, release-1.4.15-stable, release-2.1.5-beta |
|
| #
f2645f80 |
| 19-Nov-2014 |
Andrea Shepard <[email protected]> |
Implement new/free for struct evutil_monotonic_timer and export monotonic time functions
|
|
Revision tags: release-2.1.4-alpha |
|
| #
911abf3d |
| 19-Aug-2013 |
Nick Mathewson <[email protected]> |
Check CLOCK_MONOTONIC_* at runtime if needed.
(We need this to avoid compile errors on cygwin. Fixes github issue 75.)
|
|
Revision tags: release-2.1.3-alpha |
|
| #
85a40040 |
| 01-May-2013 |
Nick Mathewson <[email protected]> |
Add regress_finalize to makefile.nmake
|
|
Revision tags: release-2.1.2-alpha, release-2.0.21-stable, release-2.0.20-stable |
|
| #
9be54680 |
| 02-Aug-2012 |
Nick Mathewson <[email protected]> |
Avoid unused-var warning on systems with clock_gettime but without CLOCK_MONOTONIC_COARSE
|
|
Revision tags: release-2.0.19-stable |
|
| #
630f077c |
| 26-Apr-2012 |
Nick Mathewson <[email protected]> |
Simple unit tests for monotonic timers
|
| #
2c470452 |
| 23-Apr-2012 |
Nick Mathewson <[email protected]> |
Implement fast/precise monotonic clocks on Windows
This uses code from libutp, which was released under the MIT license; see evutil_time.c and LICENSE changes.
|
| #
f5e4eb05 |
| 20-Apr-2012 |
Nick Mathewson <[email protected]> |
Refactor monotonic timer handling into a new type and set of functions; add a gettimeofday-based ratcheting implementation
Now, event.c can always assume that we have a monotonic timer; this makes e
Refactor monotonic timer handling into a new type and set of functions; add a gettimeofday-based ratcheting implementation
Now, event.c can always assume that we have a monotonic timer; this makes event.c easier to write.
show more ...
|
| #
71bca50f |
| 20-Apr-2012 |
Nick Mathewson <[email protected]> |
Split out time-related prototypes into time-internal.h
|
| #
c4194854 |
| 20-Apr-2012 |
Nick Mathewson <[email protected]> |
Split out time-related evutil functions into a new evutil_time.c
|