mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 04:08:47 +02:00
* src/truetype/ttinterp.c (Ins_SHZ): Fix the range limit (cont'd).
Fixes
https://issues.oss-fuzz.com/issues/505900175
This commit is contained in:
parent
1803559c4e
commit
7d600a022e
1 changed files with 3 additions and 1 deletions
|
|
@ -5135,8 +5135,10 @@
|
|||
/* subtract them. */
|
||||
if ( exc->GS.gep2 == 0 )
|
||||
limit = exc->zp2.n_points;
|
||||
else
|
||||
else if ( exc->zp2.n_points > 4U )
|
||||
limit = exc->zp2.n_points - 4U;
|
||||
else
|
||||
return;
|
||||
|
||||
/* XXX: UNDOCUMENTED! SHZ doesn't touch the points */
|
||||
for ( i = 0; i < limit; i++ )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue