timeval: Avoid unnecessary integer overflow in time_alarm().
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 21:50:39 +0000 (13:50 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Feb 2013 22:27:20 +0000 (14:27 -0800)
commit75b0b752d8d70edcd08f18e1028d60537cdede85
tree67a3238ae2adef888f568253340ef20d367da153
parent3b9ed5937ac6fbfc885ed7c7b39a7708162bd8fb
timeval: Avoid unnecessary integer overflow in time_alarm().

Durations longer than 4294967 seconds would unnecessarily overflow in the
multiplication here.

Found by Coverity.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/timeval.c