HomeClusterLabs Projects
Diffusion Booth fd90d7cf7548

Med: format_peers: fix a memleak in case of buffer too small

Description

Med: format_peers: fix a memleak in case of buffer too small

Note that such a case seems impossible but there may be other issues
that will add up (see, e.g., reckless snprintf use pointed out with
https://github.com/ClusterLabs/pacemaker/pull/810, something should
eventually be reflected here as well).

Discovered-by: static analysis/Coverity

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on May 12 2016, 12:11 PM
Parents
rB1378138b26da: Med: make foreach_* macros use variable refs passed as arguments
Branches
Unknown
Tags
Unknown

Event Timeline