[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 31757f9: [base] Handle numeric overflow (#55827).
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 31757f9: [base] Handle numeric overflow (#55827). |
Date: |
Tue, 5 Mar 2019 05:37:08 -0500 (EST) |
branch: master
commit 31757f969fba60d75404f31e8f1168bef5011770
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
[base] Handle numeric overflow (#55827).
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
---
ChangeLog | 8 +++++++-
src/base/ftglyph.c | 4 ++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2cb180d..ae2d132 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
+2019-03-05 Werner Lemberg <address@hidden>
+
+ [base] Handle numeric overflow (#55827).
+
+ * src/base/ftglyph.c (FT_Glyph_Get_CBox): Use `FT_PIX_CEIL_LONG'.
+
2019-03-05 Sebastian Rasmussen <address@hidden>
- [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
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 6d30be0..e6b1327 100644
--- 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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 31757f9: [base] Handle numeric overflow (#55827).,
Werner LEMBERG <=