HomeClusterLabs Projects

Low: tools: Fix overflow in crm_simulate --repeat

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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

Commit No Longer Exists

This commit no longer exists in the repository.