Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dd0a7078
Commit
dd0a7078
authored
Oct 19, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Prevent possible buffer overrun.
parent
975a93de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
font.c
dlls/gdi32/font.c
+3
-3
No files found.
dlls/gdi32/font.c
View file @
dd0a7078
...
@@ -2596,13 +2596,13 @@ BOOL WINAPI TranslateCharsetInfo(
...
@@ -2596,13 +2596,13 @@ BOOL WINAPI TranslateCharsetInfo(
int
index
=
0
;
int
index
=
0
;
switch
(
flags
)
{
switch
(
flags
)
{
case
TCI_SRCFONTSIG
:
case
TCI_SRCFONTSIG
:
while
(
!
(
*
lpSrc
>>
index
&
0x0001
)
&&
index
<
MAXTCIINDEX
)
index
++
;
while
(
index
<
MAXTCIINDEX
&&
!
(
*
lpSrc
>>
index
&
0x0001
)
)
index
++
;
break
;
break
;
case
TCI_SRCCODEPAGE
:
case
TCI_SRCCODEPAGE
:
while
(
PtrToUlong
(
lpSrc
)
!=
FONT_tci
[
index
].
ciACP
&&
index
<
MAXTCIINDEX
)
index
++
;
while
(
index
<
MAXTCIINDEX
&&
PtrToUlong
(
lpSrc
)
!=
FONT_tci
[
index
].
ciACP
)
index
++
;
break
;
break
;
case
TCI_SRCCHARSET
:
case
TCI_SRCCHARSET
:
while
(
PtrToUlong
(
lpSrc
)
!=
FONT_tci
[
index
].
ciCharset
&&
index
<
MAXTCIINDEX
)
index
++
;
while
(
index
<
MAXTCIINDEX
&&
PtrToUlong
(
lpSrc
)
!=
FONT_tci
[
index
].
ciCharset
)
index
++
;
break
;
break
;
default:
default:
return
FALSE
;
return
FALSE
;
...
...
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