Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
61731500
Commit
61731500
authored
Aug 06, 2002
by
Howard Chu
Browse files
ITS
#1998
UTF8StringNormalize should accept all-space vals
parent
428c15d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/schema_init.c
View file @
61731500
...
...
@@ -548,10 +548,10 @@ UTF8StringNormalize(
/* All space is ASCII. All ASCII is 1 byte */
for
(
;
p
<
val
->
bv_val
+
val
->
bv_len
&&
ASCII_SPACE
(
p
[
0
]
);
p
++
);
ber_mem2bv
(
p
,
val
->
bv_len
-
(
p
-
val
->
bv_val
),
1
,
normalized
);
e
=
normalized
->
bv_val
+
val
->
bv_len
-
(
p
-
val
->
bv_val
);
normalized
->
bv_len
=
val
->
bv_len
-
(
p
-
val
->
bv_val
);
ber_mem2bv
(
p
,
normalized
->
bv_len
,
1
,
normalized
);
e
=
normalized
->
bv_val
+
normalized
->
bv_len
;
assert
(
normalized
->
bv_len
);
assert
(
normalized
->
bv_val
);
p
=
q
=
normalized
->
bv_val
;
...
...
@@ -575,7 +575,7 @@ UTF8StringNormalize(
}
}
assert
(
normalized
->
bv_val
<
p
);
assert
(
normalized
->
bv_val
<
=
p
);
assert
(
q
+
len
<=
p
);
/* cannot start with a space */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment