Garret Rieger
77a8155425
[subset] Add some basic tests for a provided glyph map.
2 years ago
Garret Rieger
db23be642f
[subset] clamp head *Min/*Max values to fit within 16 bit signed int.
...
Fixes fuzzer https://oss-fuzz.com/testcase-detail/4549472192692224 .
2 years ago
Garret Rieger
b3fed4fa64
[repacker] fix fuzzer found memory leak.
...
Fixes https://oss-fuzz.com/testcase-detail/5196242811748352
2 years ago
Garret Rieger
e41f317199
[subset] Update expectation files for full_instance tests.
2 years ago
Garret Rieger
2175f5d050
[subset] Fix inefficient ItemVariationStore subsetting w/ retain_gids.
...
ItemVariationStore is relying on the assumption that the inner_map is populated for all output glyphs, this is not true for subsetting operations with retain gids enabled. Fixes fuzzer timeout: https://oss-fuzz.com/testcase-detail/4575222591520768 .
2 years ago
Garret Rieger
647b024784
[subset] Fix fuzzer issue https://oss-fuzz.com/testcase-detail/6521393809588224
2 years ago
Garret Rieger
3db6baa20e
[subset] add test for lig glyph fix.
2 years ago
Garret Rieger
14b9d8d534
[subset] add --no-layout-closure flag.
...
Disables layout glyph closure. Fixes #4192 .
2 years ago
Qunxin Liu
96ed20725c
[instancer] update bound metrics for CFF2 instancing
2 years ago
Garret Rieger
2cd81fdfb6
[subset] fix memory leak.
...
Fixes fuzzer issue https://oss-fuzz.com/testcase-detail/6169920089227264
2 years ago
Qunxin Liu
c1acfe9966
[instancer] bug fix in TupleVariationData get_size ()
...
We need to iterate TupleVariationHeader when calculating the total size
2 years ago
Garret Rieger
be87200106
[subset] fix buffer overflow fuzzer reported issue.
2 years ago
Garret Rieger
79ae6b657f
[subset] Fix fuzzer found memory leaks.
2 years ago
Qunxin Liu
ab87d7d225
[instance] add tests for colrv1 full instancing
2 years ago
Garret Rieger
f0f7f22525
[subset] fix fuzzer found null deref.
...
https://oss-fuzz.com/testcase-detail/5844352760152064
2 years ago
Garret Rieger
a84cae424d
[subset] Don't add invalid gids (-1) to the glyphset when loading glyph map from the accelerator.
2 years ago
Qunxin Liu
204e155acb
[subset] Add tests for collecting name_ids from STAT and FeatureParams
2 years ago
Garret Rieger
3d05b96181
[subset] track which glyphs have allocated memory so we can clean up correctly.
...
Fixes https://oss-fuzz.com/testcase-detail/5388270411579392
2 years ago
Garret Rieger
7a87b17742
Check for failed subset input creation in the fuzzer.
2 years ago
Garret Rieger
28b05e1cb6
[subset] Fix memory leak in glyf subset.
...
Fixes fuzzer issue: https://oss-fuzz.com/testcase-detail/6525813890875392 .
2 years ago
Garret Rieger
9286e12525
Don't subset a glyf table with an unknown format.
...
Fixes fuzzer issue: https://oss-fuzz.com/testcase-detail/4875306193518592
2 years ago
Behdad Esfahbod
2d33a6b4df
[subset-fuzzer] Protect against overflow
...
Fixes
https://github.com/harfbuzz/harfbuzz/issues/4137#issuecomment-1448994447
2 years ago
Qunxin Liu
a975ec4842
[instancer] apply cvar deltas
2 years ago
Garret Rieger
c0fac016dc
[subset] update the subset fuzzer to be able to reach instancing code.
2 years ago
Qunxin Liu
605aed0544
[instancer] bug fix in post table applying mvar deltas
2 years ago
Garret Rieger
918193ebf9
[subset] fix a class of fuzzer timeouts caused by large shared coverage tables.
...
More acurately estimates the op count for CoverageFormat2 tables as the population size instead of the size in bytes.
2 years ago
Garret Rieger
ddd0f7f40b
[subset] Add a test for CFF2 instancing.
...
Adds option to disable the fonttools comparison check in the test. This is needed since CFF2 instancing is not yet supported in fonttools.
2 years ago
Behdad Esfahbod
4a735b30c4
[cff2-subset] Update test
2 years ago
Qunxin Liu
af1e605be2
[instancer] bug fix
...
It's possible that length of all_points equals to 4 for non-empty
glyphs: a composite glyph which contains only one child glyph that is
empty.
2 years ago
Jens Kutilek
219e2f12f0
Clarify that those two test fonts are CC0-licensed
2 years ago
Behdad Esfahbod
64fa5cd482
[GPOS] Fix assert fail introduced recently
...
Was introduced in 8708b9e081
.
If these lookups are recursed to from (Chain)Context out-of-order,
it was possible that last_base > buffer->idx, in which case we
were attaching marks to a base after them... and an assertion
was failing fortunately.
Fixes https://oss-fuzz.com/testcase-detail/6377756666757120
2 years ago
Behdad Esfahbod
474b99d122
[test-paint] Fix build without FreeType
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4103
2 years ago
Qunxin Liu
615595689c
[subset/COLR] add tests for copying varStore
2 years ago
Khaled Hosny
6c46da7710
[test] Fix shell script quoting
2 years ago
Behdad Esfahbod
e377888990
[ft-colr] Conditionalize on (unreleased0 FreeType 2.13.0
...
That's the version that the color API is called stable, and
includes changes that we rely on.
2 years ago
Matthias Clasen
8d80d1dd18
[paint] Update expected test results
...
These tests were affected by recent fixes.
2 years ago
Qunxin Liu
5e86870378
[instancer] compute head/maxp values using only non-empty glyphs
2 years ago
Andres Salomon
0bbc9d5256
[fonts] move OFL-1.1 license to a higher directory
...
There's a bunch of font directories inside of test/ for which the vast
majority of fonts are licensed under the SIL open font license. We currently
have a COPYING file in test/shape/data/in-house/COPYING that says that most
of the fonts are OFL-1.1, but that doesn't apply to the fonts in, say,
test/api/fonts/ or test/fuzzing/fonts/. Since there are so many OFL-1.1
fonts all over test, let's move the COPYING file to the top-level test/
directory.
2 years ago
Andres Salomon
c622c6b883
[font] update the license url for TestGVAREight.ttf
...
The url in the exif data incorrectly links to a proprietary license. However,
permission was granted for distribution under Apache-2 as part of another project,
so link to that project's license instead.
fixes #4062
2 years ago
Matthias Clasen
eb0a025e49
Add a test for glyph names
...
This verifies that hb_font_get_glyph_name
returns false for nonexisting glyphs.
2 years ago
Matthias Clasen
dd64266ea4
Add a test for glyph extents
...
This verifies a recent fix for COLRv1 returning
0,0,-1,1 for extents of non-painting glyphs.
2 years ago
Qunxin Liu
73e6f6cc88
[instancer] enable the missing test
2 years ago
Qunxin Liu
27f72f0deb
[instancer] avoid double free for compiled glyph bytes
...
also increase the HB_GLYF_MAX_POINTS limit to 20000 cause the test file has a
.notdef glyph which is a composite glyph and has 10176 points after
get_points() call
2 years ago
Garret Rieger
e4fff64ce3
[repacker] check duplicate() for success.
...
Fixes fuzzer testcase https://oss-fuzz.com/testcase-detail/5475787333828608 .
2 years ago
Behdad Esfahbod
e4cdaa1d3f
[test] Fix build
2 years ago
Behdad Esfahbod
9ba1e400d6
[test] Remove non-free font and its test
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4059
2 years ago
Behdad Esfahbod
b63159e8bf
[PairPosFormat1] Fix stride
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55287
and generally the lookup with MediumTypes.
2 years ago
Khaled Hosny
c08e5d094a
[hb-draw] Fix MSVC warning
...
warning C4305: 'initializing': truncation from 'double' to 'float'
2 years ago
Qunxin Liu
89d332559e
[instancer] add tests
2 years ago
Khaled Hosny
910adc7e92
[test-paint] Update expectations
2 years ago