]> git.ipfire.org Git - thirdparty/libvirt.git/commit
keepalive: Guard against integer overflow
authorJohn Ferlan <jferlan@redhat.com>
Tue, 5 Feb 2013 22:58:25 +0000 (17:58 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 20 Feb 2013 21:56:59 +0000 (16:56 -0500)
commit903f43ce6d983e1f29b25c99cde7146e7f168b9b
treeb3dc3b83cf53e39a049fcfe84e487564c4a9afff
parent567779e51a7727b021dee095c9d75cf0cde0bd43
keepalive: Guard against integer overflow

Don't allow interval to be > MAX_INT/1000 in virKeepAliveStart()

Guard against possible overflow in virKeepAliveTimeout() by setting the
timeout to be MAX_INT/1000 since the math following will multiply it by 1000.
src/rpc/virkeepalive.c