HomeClusterLabs Projects
Diffusion Booth 7e33a45d6898

pacemaker: Check snprintf return values

Description

pacemaker: Check snprintf return values

crm_ticket command string is stored into static buffer and not checked
so it can be truncated without notice.

Solution would be to use dynamic buffer, but for now at least check
snprintf return value and return error when string was truncated.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on Nov 14 2023, 11:21 AM
Parents
rB26c9509bb96d: pacemaker: Don't add explicit error prefix in log
Branches
Unknown
Tags
Unknown

Event Timeline