Re: gdi32/font: Prevent possible buffer overrun

2009-10-20 Thread Nikolay Sivov
Dmitry Timoshkov wrote: "Nikolay Sivov" wrote: Reported as http://bugs.winehq.org/show_bug.cgi?id=19819 Changelog: - prevent possible buffer overrun - while (!(*lpSrc>>index & 0x0001) && index>index & 0x0001)) index++; 'index >= MAXTCIINDEX' won't trigger in that case: if (index >=

Re: gdi32/font: Prevent possible buffer overrun

2009-10-19 Thread Dmitry Timoshkov
"Nikolay Sivov" wrote: Reported as http://bugs.winehq.org/show_bug.cgi?id=19819 Changelog: - prevent possible buffer overrun - while (!(*lpSrc>>index & 0x0001) && index>index & 0x0001)) index++; 'index >= MAXTCIINDEX' won't trigger in that case: if (index >= MAXTCIINDEX || FONT_tci[i