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
f0c85ff8
Commit
f0c85ff8
authored
Oct 19, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Correct some reading buffer overruns when parsing indic syllables.
Found with help from Dan Kegel and Valgrind.
parent
8836da81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
indic.c
dlls/usp10/indic.c
+3
-3
No files found.
dlls/usp10/indic.c
View file @
f0c85ff8
...
...
@@ -86,7 +86,7 @@ static INT consonant_header(LPCWSTR input, INT cChar, INT start, INT next,
next
++
;
if
((
next
<
cChar
)
&&
lex
(
input
[
next
])
==
lex_Nukta
)
next
++
;
if
(
lex
(
input
[
next
])
==
lex_Halant
)
if
(
(
next
<
cChar
)
&&
lex
(
input
[
next
])
==
lex_Halant
)
{
next
++
;
if
((
next
<
cChar
)
&&
is_joiner
(
lex
(
input
[
next
])
))
...
...
@@ -94,7 +94,7 @@ static INT consonant_header(LPCWSTR input, INT cChar, INT start, INT next,
if
((
next
<
cChar
)
&&
is_consonant
(
lex
(
input
[
next
])
))
return
next
;
}
else
if
(
is_joiner
(
lex
(
input
[
next
])
)
&&
lex
(
input
[
next
+
1
])
==
lex_Halant
)
else
if
(
(
next
<
cChar
)
&&
is_joiner
(
lex
(
input
[
next
])
)
&&
lex
(
input
[
next
+
1
])
==
lex_Halant
)
{
next
+=
2
;
if
((
next
<
cChar
)
&&
is_consonant
(
lex
(
input
[
next
])
))
...
...
@@ -163,7 +163,7 @@ static INT parse_vowel_syllable(LPCWSTR input, INT cChar, INT start,
else
if
((
next
<
cChar
)
&&
lex
(
input
[
next
])
==
lex_ZWJ
&&
is_consonant
(
lex
(
input
[
next
+
1
])
))
next
+=
2
;
if
(
is_matra
(
lex
(
input
[
next
])
))
if
(
(
next
<
cChar
)
&&
is_matra
(
lex
(
input
[
next
])
))
{
while
((
next
<
cChar
)
&&
is_matra
(
lex
(
input
[
next
])
))
next
++
;
...
...
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