Werner Lemberg
65681e6dc1
[truetype] Improve VF check.
...
Triggered by
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10255
* src/truetype/ttgxvar.c (ft_var_load_gvar): Use better limit check
for `tupleCount'.
6 years ago
Werner Lemberg
53c5e4bd87
* src/truetype/ttgxvar.c (ft_var_load_gvar): Check `glyphoffsets'.
6 years ago
Armin Hasitzka
7b855ed9cf
* src/pshinter/pshrec.c (t2_hints_stems): Mask numeric overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10215
6 years ago
Werner Lemberg
fea435fbf8
[sfnt] Comment improvement.
6 years ago
Ben Wagner
0805c4a488
* builds/freetype.mk (refdoc-venv): Ensure python version ( #54631 ).
6 years ago
Werner Lemberg
7bf2028250
Typo.
6 years ago
Werner Lemberg
1c04eed76f
[truetype] Fix assertion failure.
...
Triggered by
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10212
* src/truetype/ttgload.c (load_truetype_glyph): Reintroduce
`opened_frame' (removed in a change from 2018-08-26) to handle
dealloation of the second frame.
6 years ago
Werner Lemberg
f8af8fba78
Synchronize `ftdebug.c' files.
...
* builds/amiga/src/base/ftdebug.c, builds/wince/ftdebug.c,
builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c'.
6 years ago
Werner Lemberg
97c7944f9e
Synchronize `ftconfig' files.
6 years ago
Nikhil Ramakrishnan
a748ae4635
* docs/DOCGUIDE: Minor.
6 years ago
Nikhil Ramakrishnan
77aa02660e
Add documentation guidelines file.
...
* docs/DOCGUIDE: New file.
6 years ago
Werner Lemberg
48f93e648e
* devel/ftoption.h: Synchronize with master `ftoption.h'.
6 years ago
Werner Lemberg
c485bece6b
Typo ( #54618 ).
6 years ago
Werner Lemberg
9789c75b1a
More '...' vs. `...` fixes in API documentation.
6 years ago
Werner Lemberg
01a5d326bb
Make `/****...' comments in public headers uniformly end on column 77.
6 years ago
Alexei Podtelezhnikov
6a4229c4b0
* docs/DEBUG: s/trace_//.
6 years ago
Nikhil Ramakrishnan
7da5589c75
[docwriter] Don't break code snippets accross lines.
...
Reported as
http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html
* docs/reference/markdown/stylesheets/extra.css (.md-typeset code):
Add rule `white-space'.
6 years ago
Werner Lemberg
1061748256
include/freettype/config:*.*: Convert comments to Markdown syntax.
...
Also some minor documentation fixes.
6 years ago
Werner Lemberg
76a52465c1
*/*: s/PSNames/psnames/.
...
Only tracing messages are affected.
6 years ago
Werner Lemberg
475f6d25cb
[sfnt] Fix heap buffer overflow in CPAL handling.
...
* src/sfnt/ttcpal.c (tt_face_palette_set): Fix boundary test.
(tt_face_load_cpal): Updated.
6 years ago
Werner Lemberg
9be656bb0c
Remove `FT_Outline_{New,Done}_Internal'.
...
These public API functions(!) were always undocumented and have
escaped all clean-up efforts until now.
* include/freetype/ftoutln.h (FT_Outline_New_Internal,
FT_Outline_Done_Internal): Removed.
* src/base/ftoutln.h (FT_Outline_New_Internal,
FT_Outline_Done_Internal): Merge into...
(FT_Outline_New, FT_Outline_Done): ... these functions.
* docs/README: Updated.
6 years ago
Alexei Podtelezhnikov
809d5125af
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check glyph format.
6 years ago
Armin Hasitzka
4b49a8079f
[errors] Refine the macro logic surrounding `FT_Error_String'.
...
* include/freetype/fterrors.h (FT_INCLUDE_ERR_PROTOS,
FT_ERR_PROTOS_DEFINED): Undefine `FT_INCLUDE_ERR_PROTOS' after
checking it and introduce a new macro that takes proper care of
multiple-inclusion protection.
6 years ago
Werner Lemberg
c6df41e319
Whitespace.
6 years ago
Werner Lemberg
9a323e4762
* src/base/ftdebug.c (FT_Throw): Restore missing `FT_UNUSED' calls.
6 years ago
Werner Lemberg
aff04e91f6
* src/base/ftdebug.c (FT_Throw): Reduce chattiness.
6 years ago
Werner Lemberg
83525bdd10
Minor comments.
6 years ago
Werner Lemberg
d91f752b77
Whitespace.
6 years ago
Werner Lemberg
423fce2e3e
Add link to OpenType's composite glyph description.
6 years ago
Werner Lemberg
0d4ca13865
* src/autofit/afhints.c (af_glyph_hints_reload): Add initialization.
6 years ago
Alexei Podtelezhnikov
1dacbd893d
Consolidate bitmap presetting and size assessment.
...
* include/freetype/internal/ftobjs.h (ft_glyphslot_preset_bitmap):
Change return type.
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Return the bitmap
size assessment.
* src/raster/ftrend1.c (ft_raster1_render): Use it to refuse the
rendering of enourmous or far-fetched outlines.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Ditto.
6 years ago
Alexei Podtelezhnikov
ca980b4cf1
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Correct mono.
6 years ago
Armin Hasitzka
35efb103fe
[errors] Introduce a macro to control `FT_Error_String'.
...
* devel/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS),
include/freetype/config/ftoption.h (FT_CONFIG_OPTION_ERROR_STRINGS):
New macro.
6 years ago
Armin Hasitzka
d20dc3928b
[errors] Introduce `FT_Error_String'.
...
* include/freetype/fterrors.h (FT_Error_String),
src/base/fterrors.c (FT_Error_String): Implement `FT_Error_String'.
* src/base/ftbase.c, src/base/Jamfile (_source),
src/base/rules.mk (BASE_SRC): Add `fterrors.c' to the build logic.
* src/base/ftdebug.c (FT_Throw): Use `FT_Error_String'.
6 years ago
Werner Lemberg
c0ccf75012
[autofit] Trace `before' and `after' edges of strong points.
...
* src/autofit/afhints.h (AF_PointRec) [FT_DEBUG_AUTOFIT]: New arrays
`before' and `after'.
* src/autofit/afhints.c (af_get_strong_edge_index): New auxiliary
function.
(af_glyph_hints_dump_points): Trace `before' and `after' edges.
(af_glyph_hints_align_strong_points) [FT_DEBUG_AUTOFIT]: Set
`before' and `after' information.
6 years ago
Werner Lemberg
21c2b3905c
Minor.
6 years ago
Alexei Podtelezhnikov
5d93a3fc8d
[base] Overflow-resistant bitmap presetting.
...
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Implement it.
6 years ago
Werner Lemberg
19be8620ec
Doc fix.
6 years ago
Armin Hasitzka
934a6159ba
Fix numeric overflows.
...
* src/pshint/pshalgo.c (psh_hint_align, psh_hint_align_light,
psh_hint_table_find_strong_points): Fix numeric overflows.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10083
6 years ago
Werner Lemberg
14dff08f37
ftoption.h: s/precendence/precedence/ in documentation ( #54586 ).
6 years ago
Werner Lemberg
3915a18b8c
[cff] Fix handling of `roll' op in old engine.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10080
* src/psaux/cffdecode.c (cff_decoder_parse_charstrings) <cff_op_roll>
[CFF_CONFIG_OPTION_OLD_ENGINE]: Use modulo for loop count, as
documented in the specification.
6 years ago
Werner Lemberg
2c8e6279a7
Minor doc fix.
6 years ago
Werner Lemberg
ae3afbc471
* src/truetype/ttobjs.c (tt_size_read_bytecode): Trace CVT values.
7 years ago
Werner Lemberg
2095772144
ChangeLog*: s/\t/ /.
7 years ago
Nikhil Ramakrishnan
f87b711746
* configure: Copy assets required by docwriter.
...
Copy directory `docs/reference/markdown' when FreeType is compiled in a
different directory.
Fixes `make refdoc' if builddir != srcdir.
Reported as
http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00083.html
7 years ago
Werner Lemberg
13034e54aa
* src/pshint/pshalgo.c (psh_hint_overlap): Fix numeric overflow.
...
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10057
7 years ago
Werner Lemberg
4738dcc4df
Minor tracing adjustments.
...
* src/base/ftstream.c (FT_Stream_EnterFrame, FT_Stream_ExitFrame):
Trace.
* src/truetype/ttgload.c (TT_Access_Glyph_Frame): Remove tracing.
7 years ago
Werner Lemberg
6e339b8d8e
[truetype] Avoid nested frames.
...
Triggered by
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10054
* src/truetype/ttgload.c (load_truetype_glyph): Don't use variable
`opened_frame' to trace whether a frame must be closed at the end of
function: This fails because `TT_Vary_Apply_Glyph_Deltas' (which
gets called for space glyphs) uses a frame by itself. Instead,
close the frame after loading the header, then use another frame for
the remaining part of the glyph later on.
Also avoid calling `tt_get_metrics' twice under some circumstances.
7 years ago
Werner Lemberg
b287c80b6a
Various minor clean-ups.
...
* src/base/ftapi.c: Remove. Unused.
* src/base/Jamfile (_sources): Updated.
* src/base/ftstream.c (FT_Stream_ReleaseFrame): Remove redundant
code.
7 years ago
Werner Lemberg
c98aa9b78a
Add missing ChangeLog entry for the last four commits.
7 years ago