Define FT_LONG_MAX.
* include/freetype/config/ftstdlib.h (FT_LONG_MAX): New macro. * src/cff/cf2arrst.c (cf2_arrstack_setNumElements): Use it.
This commit is contained in:
parent
2b07a5ae3d
commit
5d1b8ab4d0
|
@ -1,3 +1,10 @@
|
||||||
|
2015-07-31 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Define FT_LONG_MAX.
|
||||||
|
|
||||||
|
* include/freetype/config/ftstdlib.h (FT_LONG_MAX): New macro.
|
||||||
|
* src/cff/cf2arrst.c (cf2_arrstack_setNumElements): Use it.
|
||||||
|
|
||||||
2015-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2015-07-28 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
* src/base/ftcalc.c (FT_Vector_NormLen): Clarify.
|
* src/base/ftcalc.c (FT_Vector_NormLen): Clarify.
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
#define FT_INT_MAX INT_MAX
|
#define FT_INT_MAX INT_MAX
|
||||||
#define FT_INT_MIN INT_MIN
|
#define FT_INT_MIN INT_MIN
|
||||||
#define FT_UINT_MAX UINT_MAX
|
#define FT_UINT_MAX UINT_MAX
|
||||||
|
#define FT_LONG_MAX LONG_MAX
|
||||||
#define FT_ULONG_MAX ULONG_MAX
|
#define FT_ULONG_MAX ULONG_MAX
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
size_t newSize = numElements * arrstack->sizeItem;
|
size_t newSize = numElements * arrstack->sizeItem;
|
||||||
|
|
||||||
|
|
||||||
if ( numElements > LONG_MAX / arrstack->sizeItem )
|
if ( numElements > FT_LONG_MAX / arrstack->sizeItem )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue