]> git.ipfire.org Git - thirdparty/hostap.git/commit
eloop: Fix integer overflow in long timeouts
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 27 Jan 2011 12:02:03 +0000 (14:02 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 6 Mar 2011 12:31:20 +0000 (14:31 +0200)
commit0fa0ad4e179adee291b8a8e06ecee515373c90a5
tree8d00398c8f3bb503b8b666448fb1fc425e334e98
parent9fc6aa9f959a4b86b41049c3985ae0a0405da027
eloop: Fix integer overflow in long timeouts

If the os_time_t variable used for the expiration time (seconds)
overflows when the registered timeout value is being added,
assume that the event would happen after an infinite time, i.e.,
would not really happen in practice. This fixes issues with
long key timeouts getting converted to immediate expiration due
to the overflow.
src/utils/eloop.c
src/utils/eloop_win.c