Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
add67b6f
Commit
add67b6f
authored
Oct 17, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix invalid memory access when copying KeyNameInformation data.
parent
b94fe44e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
registry.c
server/registry.c
+2
-2
No files found.
server/registry.c
View file @
add67b6f
...
...
@@ -950,10 +950,10 @@ static void enum_key( const struct key *key, int index, int info_class,
for
(
k
=
key
;
k
!=
root_key
;
k
=
k
->
parent
)
{
pos
-=
k
->
namelen
;
if
(
pos
<
len
)
memcpy
(
data
+
namelen
,
k
->
name
,
if
(
pos
<
len
)
memcpy
(
data
+
pos
,
k
->
name
,
min
(
k
->
namelen
,
len
-
pos
)
);
pos
-=
sizeof
(
backslash
);
if
(
pos
<
len
)
memcpy
(
data
+
namelen
,
backslash
,
if
(
pos
<
len
)
memcpy
(
data
+
pos
,
backslash
,
min
(
sizeof
(
backslash
),
len
-
pos
)
);
}
memcpy
(
data
,
root_name
,
min
(
sizeof
(
root_name
)
-
sizeof
(
backslash
),
len
)
);
...
...
Write
Preview
Markdown
is supported
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