This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch 389-ds-base-1.3.8
in repository 389-ds-base.
from 497793a Test for issue #49788
new 62b86b0 Fixing 4-byte UTF-8 character validation
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
ldap/servers/plugins/syntaxes/validate.c | 2 ++
1 file changed, 2 insertions(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.8
in repository 389-ds-base.
commit 62b86b057409ee24ce01c547b85e2499606ca6b9
Author: Dj Padzensky <djpadz(a)padz.net>
Date: Wed Jun 13 18:46:55 2018 -0700
Fixing 4-byte UTF-8 character validation
(cherry picked from commit 2707e39868c16275aa070102f2fda6047632354a)
---
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 371ab32..bea0ba4 100644
--- a/ldap/servers/plugins/syntaxes/validate.c
+++ b/ldap/servers/plugins/syntaxes/validate.c
@@ -241,12 +241,14 @@ 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.