mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 09:58:02 +02:00
* src/truetype/ttinterp.c (Ins_SHZ): Fix the range limit.
Fixes #1419 and #1420, as well as https://issues.oss-fuzz.com/issues/499455833
This commit is contained in:
parent
7974be74d8
commit
1803559c4e
1 changed files with 2 additions and 4 deletions
|
|
@ -5132,13 +5132,11 @@
|
|||
/* XXX: UNDOCUMENTED! SHZ doesn't move the phantom points. */
|
||||
/* Twilight zone has no real contours, so use `n_points'. */
|
||||
/* Normal zone's `n_points' includes phantoms, so must */
|
||||
/* use end of last contour. */
|
||||
/* subtract them. */
|
||||
if ( exc->GS.gep2 == 0 )
|
||||
limit = exc->zp2.n_points;
|
||||
else if ( exc->GS.gep2 == 1 && exc->zp2.n_contours > 0 )
|
||||
limit = exc->zp2.contours[exc->zp2.n_contours - 1] + 1;
|
||||
else
|
||||
limit = 0;
|
||||
limit = exc->zp2.n_points - 4U;
|
||||
|
||||
/* XXX: UNDOCUMENTED! SHZ doesn't touch the points */
|
||||
for ( i = 0; i < limit; i++ )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue