shithub: freetype+ttf2subf

Download patch

ref: 31757f969fba60d75404f31e8f1168bef5011770
parent: 6a4718a3a0584c976b10d4e3a2cc58dc5f4a8242
author: Werner Lemberg <[email protected]>
date: Tue Mar 5 06:35:03 EST 2019

[base] Handle numeric overflow (#55827).

* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
+2019-03-05  Werner Lemberg  <[email protected]>
+
+	[base] Handle numeric overflow (#55827).
+
+	* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
+
 2019-03-05  Sebastian Rasmussen  <[email protected]>
 
-	[psaux] Fix use of uninitialized memory.
+	[psaux] Fix use of uninitialized memory (#55832).
 
 	* src/psaux/psintrp.c (cf2_interpT2CharString): The call to
 	`cf2_arrstack_setCount' may fail because the allocator ran out of
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -513,8 +513,8 @@
     {
       acbox->xMin = FT_PIX_FLOOR( acbox->xMin );
       acbox->yMin = FT_PIX_FLOOR( acbox->yMin );
-      acbox->xMax = FT_PIX_CEIL( acbox->xMax );
-      acbox->yMax = FT_PIX_CEIL( acbox->yMax );
+      acbox->xMax = FT_PIX_CEIL_LONG( acbox->xMax );
+      acbox->yMax = FT_PIX_CEIL_LONG( acbox->yMax );
     }
 
     /* convert to integer pixels if needed */