HomeClusterLabs Projects

Low: libcrmcommon: NULL-check strdup() in pcmk__register_message()

Description

Low: libcrmcommon: NULL-check strdup() in pcmk__register_message()

Dereferencing null pointer found by cppcheck.

Assert on failure. This is a library function but doesn't currently
return anything. Also, this would have segfaulted in the past.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 20 2024, 11:10 PM
Parents
rPfad740e87784: Low: libcrmcommon: NULL-check strdup() in pcmk__register_format()
Branches
Unknown
Tags
Unknown