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
HAMANO Tsukasa
OpenLDAP
Commits
ccb4f485
Commit
ccb4f485
authored
Sep 01, 2021
by
HAMANO Tsukasa
Committed by
Quanah Gibson-Mount
Sep 02, 2021
Browse files
ITS#9643 Fix out of bounds read in entry_decode()
parent
73be971a
Pipeline
#3407
canceled with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/entry.c
View file @
ccb4f485
...
...
@@ -845,7 +845,8 @@ int entry_decode(EntryHeader *eh, Entry **e)
a
=
x
->
e_attrs
;
bptr
=
(
BerVarray
)
eh
->
bv
.
bv_val
;
while
((
i
=
entry_getlen
(
&
ptr
)))
{
while
(((
char
*
)
ptr
-
eh
->
bv
.
bv_val
<
eh
->
bv
.
bv_len
)
&&
(
i
=
entry_getlen
(
&
ptr
)))
{
struct
berval
bv
;
bv
.
bv_len
=
i
;
bv
.
bv_val
=
(
char
*
)
ptr
;
...
...
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