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
Norbert Klasen
JLDAP
Commits
06806c27
Commit
06806c27
authored
Aug 11, 2005
by
Sunil Kumar
Browse files
Field is read after checking the array bounds.
parent
1cc4460e
Changes
1
Show whitespace changes
Inline
Side-by-side
com/novell/ldap/util/LDIFReader.java
View file @
06806c27
...
...
@@ -612,12 +612,12 @@ public class LDIFReader implements LDAPReader {
}
fieldIndex
++;
// reference newsuperior field
currentField
=
(
StringBuffer
)
this
.
rFields
.
get
(
fieldIndex
);
if
(
fieldIndex
==
this
.
fNumber
)
{
// no newsuperior spefified
this
.
modInfo
[
2
]
=
new
String
(
""
);
}
else
{
// there is a newsuperior
currentField
=
(
StringBuffer
)
this
.
rFields
.
get
(
fieldIndex
);
index
=
12
;
// length of "newsuperior:"
if
(
!
currentField
.
substring
(
0
,
index
).
equalsIgnoreCase
(
"newsuperior:"
))
{
...
...
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