HomeClusterLabs Projects

Test: libcrmcommon: Trigger overflow properly for crm_get_msec()

Description

Test: libcrmcommon: Trigger overflow properly for crm_get_msec()

This was an off-by-one. The number in the overflow input was LLONG_MAX.
That's not an overflow and doesn't cause ERANGE.

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

Details

Provenance
nrwahl2Authored on Mar 21 2025, 5:09 AM
Parents
rP91e3a36854cf: Refactor: tools: Use unsigned int for tolerance in stonith_admin.c
Branches
Unknown
Tags
Unknown