HomeClusterLabs Projects

Test: libcrmcommon: Trigger overflow properly for crm_get_msec()
4fc679137510Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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
rP31fb20c811be: Refactor: tools: Use unsigned int for tolerance in stonith_admin.c
Branches
Unknown
Tags
Unknown

Event Timeline