HomeClusterLabs Projects

Fix: libcrmcommon: use INT_MIN/INT_MAX instead of -1 for out-of-range integers

Description

Fix: libcrmcommon: use INT_MIN/INT_MAX instead of -1 for out-of-range integers

The likely use case is when a user configures a score value as an insanely
large integer rather than INFINITY.

Issue discovered and reported on developers@clusterlabs.org mailing list by
Lars Ellenberg <lars.ellenberg@linbit.com>.

Details

Provenance
kgaillotAuthored on Apr 5 2019, 12:23 PM
Parents
rPbbe4ef94245a: Merge pull request #1740 from clumens/libpacemaker
Branches
Unknown
Tags
Unknown

Event Timeline