[base] Handle numeric overflow (#55827).

* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
This commit is contained in:
Werner Lemberg 2019-03-05 11:35:03 +01:00
parent 6a4718a3a0
commit 31757f969f
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,12 @@
2019-03-05 Werner Lemberg <wl@gnu.org>
[base] Handle numeric overflow (#55827).
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
2019-03-05 Sebastian Rasmussen <sebras@gmail.com>
[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

View File

@ -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 */