[SSSD] [PATCH] Ignore NULL-terminator when checking UTF8-validity

Stephen Gallagher sgallagh at redhat.com
Mon Dec 5 18:44:21 UTC 2011


Glib fails if the NULL-terminator is included when a length is
specified.

I recently pushed "Allow using Glib for UTF8 support" after doing
excessive negative testing. However, I forgot to do positive testing and
therefore failed to discover that Glib treats a NULL-terminator as an
error in validation.

This patch changes our consumers to drop the NULL-terminator before
passing it to validation. This works properly on both Glib and
libunistring.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Ignore-NULL-terminator-when-checking-UTF8-validity.patch
Type: text/x-patch
Size: 2093 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20111205/ca7f7db2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20111205/ca7f7db2/attachment.sig>


More information about the sssd-devel mailing list