]> git.puffer.fish Git - mirror/frr.git/commit
lib: Add a Dev catch for when a timer is set for > 1 year 10655/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 25 Feb 2022 13:19:07 +0000 (08:19 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 25 Feb 2022 13:19:07 +0000 (08:19 -0500)
commite2eff5c3b13ee31ddc1b80d828ce12fba64f6a3b
tree597ebb5a7ff51609a0b7a444b9001ad122914169
parent41ff140670e1c1a0cfbea682000a1cfe3a0cc1a0
lib: Add a Dev catch for when a timer is set for > 1 year

Since there are timers that are created based upon doing some
math and we know that unsigned values when doing math and we accidently
subtract a larger number from a smaller number causes the unsigned
number to wrap to very large numbers, let's put in a small catch
in place to see if there are any places in the system that
mistakes are made and FRR is accidently creating a problem
for itself.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/lib_errors.c
lib/lib_errors.h
lib/thread.c