HomeClusterLabs Projects

Refactor: fencer, libstonithd: Bounds-check stonith-watchdog-timeout

Description

Refactor: fencer, libstonithd: Bounds-check stonith-watchdog-timeout

There may be cases that aren't technically correct (especially in
conjunction with very large SBD_WATCHDOG_TIMEOUT values) -- but with
timeout values higher than INT_MAX, there's no practical relevance. A
timeout of INT_MAX milliseconds is over three weeks if I did the math
correctly.

The most important thing is to avoid overflow to negative values in
configurations with unreasonably large timeouts.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 12 2024, 5:14 AM
Parents
rPf95189916425: Refactor: libcrmcommon: Bounds-check crm_get_msec()
Branches
Unknown
Tags
Unknown