Lines 27-32
Link Here
|
27 |
#include FT_SERVICE_WINFNT_H |
27 |
#include FT_SERVICE_WINFNT_H |
28 |
#include FT_SERVICE_XFREE86_NAME_H |
28 |
#include FT_SERVICE_XFREE86_NAME_H |
29 |
|
29 |
|
|
|
30 |
#include <limits.h> |
31 |
|
30 |
/*************************************************************************/ |
32 |
/*************************************************************************/ |
31 |
/* */ |
33 |
/* */ |
32 |
/* The macro FT_COMPONENT is used in trace mode. It is an implicit */ |
34 |
/* The macro FT_COMPONENT is used in trace mode. It is an implicit */ |
Lines 614-619
Link Here
|
614 |
|
616 |
|
615 |
/* note: since glyphs are stored in columns and not in rows we */ |
617 |
/* note: since glyphs are stored in columns and not in rows we */ |
616 |
/* can't use ft_glyphslot_set_bitmap */ |
618 |
/* can't use ft_glyphslot_set_bitmap */ |
|
|
619 |
if (pitch > LONG_MAX/bitmap->rows) |
620 |
goto Exit; |
621 |
|
617 |
if ( FT_ALLOC( bitmap->buffer, pitch * bitmap->rows ) ) |
622 |
if ( FT_ALLOC( bitmap->buffer, pitch * bitmap->rows ) ) |
618 |
goto Exit; |
623 |
goto Exit; |
619 |
|
624 |
|