HomeClusterLabs Projects

Low: tools: Fix overflow in crm_simulate --repeat
e1d1002944f8Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Low: tools: Fix overflow in crm_simulate --repeat

Due to the way glib parses integer options and casts them to assign them
to variables, a value of --repeat="-1" wrapped around to 2^32 - 1,
causing a very long loop. Instead, we default it to 0 if a negative
value is passed in.

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

Details

Provenance
nrwahl2Authored on Jan 25 2025, 12:42 AM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.