NetworkManager/shared/nm-utils
Thomas Haller c909149c13
platform/tests: better handling "timeout_msec" argument in nmtst_main_context_iterate_until()
nmtst_main_context_iterate_until() is a macro, and we don't want to restrict the
valid integer type (or range) of the "timeout_msec" argument.

In particular, if the user calculates a timeout with "timestamp_msec -
now_msec", the resulting "timeout_msec" might be a negative gint64.
We should handle that gracefully, and not let it be cast to a huge
unsigned int.

(cherry picked from commit 6cb6888404)
(cherry picked from commit 4d572bea7e)
(cherry picked from commit 95b74a3bde)
(cherry picked from commit 500c63db3c)
(cherry picked from commit e8a5cee1a1)
2021-06-10 19:32:50 +02:00
..
tests shared/tests: add test for nm_utils_bin2hexstr_full() 2019-06-19 15:49:57 +02:00
nm-compat.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-compat.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-test-utils.h platform/tests: better handling "timeout_msec" argument in nmtst_main_context_iterate_until() 2021-06-10 19:32:50 +02:00
nm-vpn-editor-plugin-call.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-vpn-plugin-macros.h all: drop empty first line from sources 2019-06-11 10:15:06 +02:00
nm-vpn-plugin-utils.c all: drop empty first line from sources 2019-06-11 10:15:06 +02:00
nm-vpn-plugin-utils.h all: drop empty first line from sources 2019-06-11 10:15:06 +02:00