HomeClusterLabs Projects

Low: all: constrain minimum when parsing certain internally generated integers

Description

Low: all: constrain minimum when parsing certain internally generated integers

Since these values are all generated by Pacemaker, bounds-checking is just a
sanity check and shouldn't have any effect in practice.

A new internal API function, pcmk__scan_min_int(), is created to handle this
(replacing crm_parse_int() and its alias crm_atoi() for these purposes).

Examples include call IDs, exit statuses, and boolean values bounded to 0.

Details

Provenance
kgaillotAuthored on Mar 19 2021, 5:59 PM
Parents
rP80d2c6511613: Low: CIB: constrain remote-tls-port and remote-clear-port to port range
Branches
Unknown
Tags
Unknown