mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
[WIN32K]
- Fix a possible out of bounds read. CID 731665 svn path=/trunk/; revision=62651
This commit is contained in:
parent
ab07d0dfbe
commit
d141ce54b6
1 changed files with 3 additions and 3 deletions
|
@ -533,19 +533,19 @@ IntTranslateCharsetInfo(PDWORD Src, /* [in]
|
|||
switch (Flags)
|
||||
{
|
||||
case TCI_SRCFONTSIG:
|
||||
while (0 == (*Src >> Index & 0x0001) && Index < MAXTCIINDEX)
|
||||
while (Index < MAXTCIINDEX && 0 == (*Src >> Index & 0x0001))
|
||||
{
|
||||
Index++;
|
||||
}
|
||||
break;
|
||||
case TCI_SRCCODEPAGE:
|
||||
while ( *Src != FontTci[Index].ciACP && Index < MAXTCIINDEX)
|
||||
while (Index < MAXTCIINDEX && *Src != FontTci[Index].ciACP)
|
||||
{
|
||||
Index++;
|
||||
}
|
||||
break;
|
||||
case TCI_SRCCHARSET:
|
||||
while ( *Src != FontTci[Index].ciCharset && Index < MAXTCIINDEX)
|
||||
while (Index < MAXTCIINDEX && *Src != FontTci[Index].ciCharset)
|
||||
{
|
||||
Index++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue