The software does not correctly calculate the length of strings that can contain wide or multi-byte characters.