forked from minhngoc25a/freetype2
* builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
This commit is contained in:
parent
bebc7b11c5
commit
cb37b3b36a
|
@ -3,6 +3,9 @@
|
||||||
* src/cid/cidparse.c (cid_parser_new): Don't continue second search
|
* src/cid/cidparse.c (cid_parser_new): Don't continue second search
|
||||||
pass for `StartData' if an error has occurred.
|
pass for `StartData' if an error has occurred.
|
||||||
|
|
||||||
|
* builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
|
||||||
|
LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
|
||||||
|
|
||||||
2007-05-30 Werner Lemberg <wl@gnu.org>
|
2007-05-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
|
* src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
|
||||||
|
|
|
@ -275,7 +275,7 @@
|
||||||
/* To avoid overflow caused by fonts in huge files larger than */
|
/* To avoid overflow caused by fonts in huge files larger than */
|
||||||
/* 2GB, do a test. Temporary fix proposed by Sean McBride. */
|
/* 2GB, do a test. Temporary fix proposed by Sean McBride. */
|
||||||
/* */
|
/* */
|
||||||
if ( stat_buf.st_size > ULONG_MAX )
|
if ( stat_buf.st_size > LONG_MAX )
|
||||||
{
|
{
|
||||||
FT_ERROR(( "FT_Stream_Open: file is too big" ));
|
FT_ERROR(( "FT_Stream_Open: file is too big" ));
|
||||||
goto Fail_Map;
|
goto Fail_Map;
|
||||||
|
|
|
@ -384,7 +384,7 @@ FT_BEGIN_HEADER
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* <Struct> */
|
/* <Struct> */
|
||||||
/* FT_Data */
|
/* FT_Data */
|
||||||
/* */
|
/* */
|
||||||
/* <Description> */
|
/* <Description> */
|
||||||
/* Read-only binary data represented as a pointer and a length. */
|
/* Read-only binary data represented as a pointer and a length. */
|
||||||
|
|
Loading…
Reference in New Issue