HomeClusterLabs Projects

Refactor: libcrmcommon: Sanity-check utf8_bytes() result

Description

Refactor: libcrmcommon: Sanity-check utf8_bytes() result

If we ever hit this assertion, then either

  • there's a bug in utf8_bytes(), or
  • we've encountered an unexpected string encoding that the rest of our library code can't handle properly.

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

Details

Provenance
nrwahl2Authored on Mar 23 2024, 4:45 PM
Parents
rPa791b0f295c7: Fix: libcrmcommon: Escape newlines and tabs in XML attribute values
Branches
Unknown
Tags
Unknown