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
21f1fa82
Commit
21f1fa82
authored
Jul 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix uninitialized buffer in locale initialization.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49494
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
520040dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
env.c
dlls/ntdll/unix/env.c
+4
-2
No files found.
dlls/ntdll/unix/env.c
View file @
21f1fa82
...
...
@@ -836,6 +836,8 @@ static BOOL unix_to_win_locale( const char *unix_name, char *win_name )
if
(
!
unix_name
||
!
unix_name
[
0
])
return
FALSE
;
}
if
(
strlen
(
unix_name
)
>=
LOCALE_NAME_MAX_LENGTH
)
return
FALSE
;
strcpy
(
buffer
,
unix_name
);
if
(
!
(
p
=
strpbrk
(
buffer
,
sep
)))
{
if
(
!
strcmp
(
buffer
,
"POSIX"
)
||
!
strcmp
(
buffer
,
"C"
))
...
...
@@ -1247,6 +1249,6 @@ USHORT * CDECL get_unix_codepage_data(void)
*/
void
CDECL
get_locales
(
WCHAR
*
sys
,
WCHAR
*
user
)
{
ntdll_umbstowcs
(
system_locale
,
ARRAY_SIZE
(
system_locale
),
sys
,
LOCALE_NAME_MAX_LENGTH
*
sizeof
(
WCHAR
)
);
ntdll_umbstowcs
(
user_locale
,
ARRAY_SIZE
(
user_locale
),
user
,
LOCALE_NAME_MAX_LENGTH
*
sizeof
(
WCHAR
)
);
ntdll_umbstowcs
(
system_locale
,
strlen
(
system_locale
)
+
1
,
sys
,
LOCALE_NAME_MAX_LENGTH
);
ntdll_umbstowcs
(
user_locale
,
strlen
(
user_locale
)
+
1
,
user
,
LOCALE_NAME_MAX_LENGTH
);
}
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