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
38aa7696
Commit
38aa7696
authored
Nov 08, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Avoid an end of buffer overrun when seeking non space characters at an end of a BiDi string.
parent
78e4d3d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
usp10.c
dlls/usp10/usp10.c
+4
-1
No files found.
dlls/usp10/usp10.c
View file @
38aa7696
...
...
@@ -856,7 +856,10 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
int
j
=
1
;
while
(
cnt
+
j
<
cInChars
-
1
&&
(
pwcInChars
[
cnt
+
j
]
==
Numeric_space
||
pwcInChars
[
cnt
+
j
]
==
ZWJ
||
pwcInChars
[
cnt
+
j
]
==
ZWNJ
))
j
++
;
New_Script
=
get_char_script
(
pwcInChars
[
cnt
+
j
]);
if
(
cnt
+
j
<
cInChars
)
New_Script
=
get_char_script
(
pwcInChars
[
cnt
+
j
]);
else
New_Script
=
get_char_script
(
pwcInChars
[
cnt
]);
}
if
((
levels
&&
(
levels
[
cnt
]
!=
pItems
[
index
].
a
.
s
.
uBidiLevel
||
(
strength
&&
(
strength
[
cnt
]
!=
str
))))
||
(
New_Script
!=
-
1
&&
New_Script
!=
pItems
[
index
].
a
.
eScript
)
||
New_Script
==
Script_Control
)
...
...
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