This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.2.11
in repository 389-ds-base.
commit f3f5d28332783731fdc096b1a8ca159e517d002d
Author: Mark Reynolds <mreynolds@redhat.com>
Date: Mon Jun 18 14:24:58 2018 -0400
Ticket 49788 - Fixing 4-byte UTF-8 character validation
Description: Advance string as needed
https://pagure.io/389-ds-base/issue/49788
---
ldap/servers/plugins/syntaxes/validate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ldap/servers/plugins/syntaxes/validate.c b/ldap/servers/plugins/syntaxes/validate.c
index cfdb17f..ea50d83 100644
--- a/ldap/servers/plugins/syntaxes/validate.c
+++ b/ldap/servers/plugins/syntaxes/validate.c
@@ -270,12 +270,14 @@ int utf8char_validate(
* the second byte. */
if (*p == '\xF0') {
/* The next byte must be %x90-BF. */
+ p++;
if (((unsigned char)*p < (unsigned char)'\x90') || ((unsigned char)*p > (unsigned char)'\xBF')) {
rc = 1;
goto exit;
}
} else if (*p == '\xF4') {
/* The next byte must be %x80-BF. */
+ p++;
if (((unsigned char)*p < (unsigned char)'\x80') || ((unsigned char)*p > (unsigned char)'\xBF')) {
rc = 1;
goto exit;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org/message/GGCI3Q2FM22PTN3ZMVBWPAE6BCC3CX55/
No comments:
Post a Comment