suzuki toshiya
2680780884
lzw: Count the size of the memory object by ptrdiff_t.
16 years ago
Oran Agra
1dcd0f2399
Add #error to modules and files that do not support PIC yet.
...
When FT_CONFIG_OPTION_PIC is defined the following files will
create #error:
* src/bdf/bdfdrivr.h
* src/cache/ftcmanag.c
* src/cid/cidriver.h
* src/gxvalid/gxvmod.h
* src/gzip/ftgzip.c
* src/lzw/ftlzw.c
* src/otvalid/otvmod.h
* src/pcf/pcfdrivr.h
* src/pfr/pfrdrivr.h
* src/psaux/psauxmod.h
* src/type1/t1driver.h
* src/type42/t42drivr.h
* src/winfonts/winfnt.h
16 years ago
Werner Lemberg
a49db4f866
Copyright.
16 years ago
Werner Lemberg
0a05ba257b
Protect against malformed compressed data.
...
Problem reported by Tavis Ormandy <taviso@google.com>.
* src/lsw/ftzopen.c (ft_lzwstate_io): Test whether `state->prefix' is
zero.
16 years ago
Werner Lemberg
24d72a1b0b
Don't use stdlib.h and friends directly.
...
16 years ago
Werner Lemberg
2b0b4221ab
Cosmetic code changes.
17 years ago
Werner Lemberg
1c8980ef4a
* docs/CHANGES: Updated.
...
18 years ago
David Turner
3e2f953a10
real fix for bug #19910 . the .Z format is really badly designed :-(
18 years ago
David Turner
0d0365ec59
avoid heap explosion in the case of malformed .Z font files
...
related to bug #19910 , but not a bugfix yet
18 years ago
Werner Lemberg
4f3b5bbd95
* src/lzw/ftlzw2.c: Renamed to...
...
19 years ago
Werner Lemberg
c6afa1221a
* include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++).
...
19 years ago
David Turner
9ca782569c
* include/freetype/internal/ftmemory.h, src/base/ftbitmap.c,
...
src/base/ftmac.c, src/base/ftrfork.c, src/lzw/ftzopen.c,
src/raster/ftrend1.c, src/sfnt/ttpost.c, src/truetype/ttgxvar.c,
src/type42/t42parse.c, src/winfonts/winfnt.c: hardening the code
against out-of-bounds conditions when allocating arrays. This is
for the cases where FT_NEW_ARRAY and FT_RENEW_ARRAY are not used
already. Introducing the new FT_ALLOC_MULT and FT_REALLOC_MULT
macros.
19 years ago
Werner Lemberg
50ef72b6e3
* src/lzw/ftlzw.c, src/lzw/zopen.c, src/lzw/zopen.h: Removed,
...
19 years ago
Werner Lemberg
af16820a12
Normalize quotation to `...'.
19 years ago
Werner Lemberg
7f049f4221
Formatting, copyright years.
19 years ago
David Turner
de271ab8f0
* builds/unix/ftsystem.c, include/freetype/config/ftheader.h,
...
include/freetype/internal/services/svotval.h,
include/freetype/internal/services/svpfr.h,
src/base/ftsystem.c, src/bdf/bdfdrivr.c, src/cache/ftcbasic.c,
src/cff/cffcmap.c, src/gzip/ftgzip.c, src/lzw/ftlzw.c,
src/lzw/ftlzw2.c, src/psaux/t1cmap.c, src/sfnt/ttbdf.c,
src/smooth/ftgrays.c:
solved -Wmissing-prototypes warnings with GCC
19 years ago
Werner Lemberg
84cacd2391
formatting, comment clean-up
20 years ago
David Turner
398d64c0cc
* src/base/ftdbgmem.c: another realloc memory counting bug fix
...
* src/tools/Jamfile: adding missing file
* src/lzw/Jamfile: fixing incorrect source file reference
20 years ago
Werner Lemberg
560d5fed38
Minor cleanups.
...
20 years ago
David Turner
c1b6d08291
* src/base/ftdbgmem.c: fixes to better account for memory reallocations
...
* src/lzw/ftlzw2.c, src/lzw/ftzopen.h, src/lzw/ftzopen.c, src/lzw/rules.mk:
first version of LZW loader re-implementation. Apparently, saves about
260 KB of heap memory when loading tir24.pcf.Z
20 years ago
Werner Lemberg
60a04df7b0
Add license.
20 years ago
Werner Lemberg
22ad9ef024
Handle unsorted SFNT type 4 cmaps correctly (reported by Dirck
...
20 years ago
David Turner
750fa961c6
* Jamfile: removing otvalid from the list of compiled modules
...
* include/freetype/internal/ftserv.h: added compiler pragmas to get rid
of annoying warnings with Visual C++ compiler in maximum warning mode
* src/autofit/afhints.c, src/autofit/aflatin.c, src/base/ftstroke.c,
src/bdf/bdfdrivr.c, src/cache/ftcbasic.c, src/cache/ftccmap.c,
src/cache/ftcmanag.c, src/cff/cffload.c, src/cid/cidload.c,
src/lzw/zopen.c, src/otvalid/otvgdef.c, src/pcf/pcfread.c,
src/sfnt/sfobjs.c, src/truetype/ttgxvar.c: removing compiler warnings
20 years ago
Werner Lemberg
ebf5585dd0
Formatting.
20 years ago
David Turner
68df4f732d
* src/bdf/bdflib.c: various improvements to the bdf loader, mainly
...
used to reduce the amount of heap size required to only test wether
we're dealing with a BDF font (the old code allocated 64 Kb right
before any test).
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): modified the function to check
the LZW header before doing anything else. This helps avoid un-necessary
heap allocations (400 Kb of heap memory for the LZW decoder ! Oh my !)
* src/gzip/ftgzip.c (FT_Stream_OpenGZip): ditto for the .gz decoder,
though the code savings is smaller.
20 years ago
Werner Lemberg
f9b44e30b5
* src/lzw/zopen.c: Comment out inclusion of `signal.h' and `unistd.h'.
21 years ago
David Turner
10bf05a31d
* src/cff/cffobjs.c (cff_face_init): fixed a small memory leak
...
* src/autofit/afloader.c, src/autofit/afmodule.c, src/base/ftdebug.c:
removed compiler warnings
* src/autofit/aftypes.h, src/lzw/zopen.c, src/pcf/pcfdrivr.c,
src/pcf/pcfread.c, src/psaux/psobjs.c, src/type42/t42drivr.c:
changed data arrays to "const" to avoid populating the ".data"
segment
21 years ago
Antoine Leca
497cc7c4bf
Jamfile to bring in the new lzw module.
...
My first try at this exercise, please report problems, I lack experience! Antoine
21 years ago
Werner Lemberg
161438c5b6
* src/lzw/zopen.c: Don't include sys/param.h and sys/stat.h.
21 years ago
Werner Lemberg
391de1a63e
* src/lzw/ftlzw.c: Include zopen.h dependent on
...
21 years ago
Werner Lemberg
6ea2054fd2
Initial revision
21 years ago