freetype2/src/gzip
Kan-Ru Chen 21b1a0de7c Fix reading of signed integers from files on 64bit platforms.
Previously, signed integers were converted to unsigned integers, but
this can fail because of sign extension.  For example, 0xa344a1eb
becomes 0xffffffffa344a1eb.

We now do the reverse which is always correct because the integer
size is the same during the cast from unsigned to signed.

* include/freetype/internal/ftstream.h, src/base/ftstream.c
(FT_Stream_Get*): Replace with...
(FT_Stream_GetU*): Functions which read unsigned integers.
Update all macros accordingly.

* src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Updated.
2011-04-12 09:26:43 +02:00
..
Jamfile Add license. 2005-06-04 23:04:30 +00:00
adler32.c Remove tabs from source files. 2007-06-01 06:56:17 +00:00
ftgzip.c Fix reading of signed integers from files on 64bit platforms. 2011-04-12 09:26:43 +02:00
infblock.c * include/freetype/internal/bdftypes.h: removed obsolete header 2003-10-29 21:43:52 +00:00
infblock.h 2002-11-05 David Turner <david@freetype.org> 2002-11-06 22:32:54 +00:00
infcodes.c various improvements for 2.1.4. see ChangeLog, I've got problems with 2003-01-30 23:24:18 +00:00
infcodes.h 2002-11-05 David Turner <david@freetype.org> 2002-11-06 22:32:54 +00:00
inffixed.h * src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c 2003-10-15 22:20:56 +00:00
inflate.c various improvements for 2.1.4. see ChangeLog, I've got problems with 2003-01-30 23:24:18 +00:00
inftrees.c Make braces balanced throught the whole file. 2008-10-07 18:15:46 +00:00
inftrees.h * src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c 2003-10-15 22:20:56 +00:00
infutil.c * src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c 2003-10-15 22:20:56 +00:00
infutil.h * src/gzip/ftgzip.c: (inflate_mask): Replaced with... 2003-06-09 20:55:04 +00:00
rules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
zconf.h Make `gzip' module compile on WinCE. 2009-03-19 08:17:50 +01:00
zlib.h * src/gzip/adler32.c, src/gzip/infblock.c, src/gzip/inflate.c, 2002-12-26 20:51:04 +00:00
zutil.c gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default. 2009-08-01 00:30:11 +09:00
zutil.h Remove tabs from source files. 2007-06-01 06:56:17 +00:00