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
de09e9b9
Commit
de09e9b9
authored
Jan 06, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Fix buffer overflow when filling test string.
parent
b46a6284
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
layout.c
dlls/dwrite/tests/layout.c
+2
-4
No files found.
dlls/dwrite/tests/layout.c
View file @
de09e9b9
...
...
@@ -927,7 +927,7 @@ todo_wine {
static
void
test_SetLocaleName
(
void
)
{
static
const
WCHAR
strW
[]
=
{
'a'
,
'b'
,
'c'
,
'd'
,
0
};
WCHAR
buffW
[
LOCALE_NAME_MAX_LENGTH
+
5
];
WCHAR
buffW
[
LOCALE_NAME_MAX_LENGTH
+
sizeof
(
strW
)
/
sizeof
(
WCHAR
)
];
IDWriteTextFormat
*
format
;
IDWriteTextLayout
*
layout
;
DWRITE_TEXT_RANGE
range
;
...
...
@@ -971,9 +971,7 @@ if (0) /* crashes on native */
/* name is too long */
lstrcpyW
(
buffW
,
strW
);
while
(
lstrlenW
(
buffW
)
<
LOCALE_NAME_MAX_LENGTH
)
{
lstrcatW
(
buffW
,
strW
);
}
while
(
lstrlenW
(
buffW
)
<=
LOCALE_NAME_MAX_LENGTH
)
lstrcatW
(
buffW
,
strW
);
range
.
startPosition
=
0
;
...
...
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