mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-19 03:08:09 +02:00
* src/psaux/psstack.c (cf2_stack_setReal): Fix off-by-one in index check.
Fixes #1428.
This commit is contained in:
parent
b6bcd2177f
commit
1f705ffb71
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@
|
|||
CF2_UInt idx,
|
||||
CF2_Fixed val )
|
||||
{
|
||||
if ( idx > cf2_stack_count( stack ) )
|
||||
if ( idx >= cf2_stack_count( stack ) )
|
||||
{
|
||||
CF2_SET_ERROR( stack->error, Stack_Overflow );
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue