[base] Rework d1180b5f95 until further notice.

* src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
outlines.
This commit is contained in:
Alexei Podtelezhnikov 2020-06-19 08:39:23 -04:00
parent 8ed5a2477e
commit 6e722f2eaa
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2020-06-19 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] Rework d1180b5f9598 until further notice.
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Reject large
outlines.
2020-06-19 Sebastian Rasmussen <sebras@gmail.com>
[cff, cid] Fix segfaults in case of error (#58621).

View File

@ -1060,11 +1060,9 @@
if ( cbox.xMin == cbox.xMax || cbox.yMin == cbox.yMax )
return FT_ORIENTATION_NONE;
/* Reject values larger than 32bit. */
if ( (unsigned long)cbox.xMin > 0xFFFFFFFFUL ||
(unsigned long)cbox.xMax > 0xFFFFFFFFUL ||
(unsigned long)cbox.yMin > 0xFFFFFFFFUL ||
(unsigned long)cbox.yMax > 0xFFFFFFFFUL )
/* Reject values large outlines. */
if ( cbox.xMin < -0x1000000L || cbox.yMin < -0x1000000L ||
cbox.xMax > 0x1000000L || cbox.yMax > 0x1000000L )
return FT_ORIENTATION_NONE;
xshift = FT_MSB( (FT_UInt32)( FT_ABS( cbox.xMax ) |