]> git.ipfire.org Git - thirdparty/bird.git/commit
Babel: Make sure intervals do not overflow
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 19 Jul 2016 09:57:20 +0000 (11:57 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 19 Jul 2016 09:57:20 +0000 (11:57 +0200)
commit321ff8c4049ec6c2fa198858b4a7f1814ce05e39
treec8d4a9ef7bdc005139ab39ec2b072b201a03ad7d
parent6887f409f0766c60dd8c3d3fdf01a1d989c090a5
Babel: Make sure intervals do not overflow

Intervals are carried as 16-bit centisecond values, but kept internally
in 16-bit second values, which causes a potential for overflow. This adds
some checks to make sure this does not happen.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
proto/babel/babel.h
proto/babel/config.Y