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
0cb27981
Commit
0cb27981
authored
Oct 24, 2022
by
Martin Storsjö
Committed by
Alexandre Julliard
Oct 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Make sure that the stack buffer in set_multi_value_key is large enough.
This fixes stack overflows since
edecac8a
. Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
7486c406
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
font.c
dlls/win32u/font.c
+8
-1
No files found.
dlls/win32u/font.c
View file @
0cb27981
...
...
@@ -3043,12 +3043,19 @@ static void update_font_association_info(void)
static
void
set_multi_value_key
(
HKEY
hkey
,
const
WCHAR
*
name
,
const
char
*
value
,
DWORD
len
)
{
WCHAR
valueW
[
256
];
WCHAR
*
valueW
;
if
(
!
(
valueW
=
malloc
(
len
*
sizeof
(
WCHAR
)
)))
{
ERR
(
"malloc of %d * WCHAR failed
\n
"
,
len
);
return
;
}
ascii_to_unicode
(
valueW
,
value
,
len
);
if
(
value
)
set_reg_value
(
hkey
,
name
,
REG_MULTI_SZ
,
valueW
,
len
*
sizeof
(
WCHAR
)
);
else
if
(
name
)
reg_delete_value
(
hkey
,
name
);
free
(
valueW
);
}
static
void
update_font_system_link_info
(
void
)
...
...
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