Qunxin Liu
e1a5ce6aa6
Fix fuzzer crash testcase
...
Add a check for stringOffSet(uint16) overflow,
return early if overflow happens
6 years ago
Rod Sheeter
e662532833
[subset] Cppcheck complaints
6 years ago
Qunxin Liu
993d81b9c5
[subset] Add one ttf file with fvar/STAT tables to integration test
...
Ignore gvar/MVAR/HVAR table
add support for --nameIDs=* option
6 years ago
Rod Sheeter
51a0129f73
[subset] Thar be comparison of integers of different signs
6 years ago
Garret Rieger
b928de91a7
[subset] Add test/subset/data/expected/layout to dist list.
6 years ago
Garret Rieger
c740c8636b
[subset] Add integration tests for SingleSubst.
6 years ago
Rod Sheeter
349d692b0e
[subset] Iter in and out for loca
6 years ago
Rod Sheeter
5cedda5e4a
[subset] Fix null pointer deref, tidy up a bit
6 years ago
Rod Sheeter
8a84b540c7
[subset] Tests passing using iterator based glyf
6 years ago
rsheeter
3a4c928fcf
[subset] Fix glyf tests except hint stripping & local test asan
6 years ago
Garret Rieger
0ff3618c2d
[subset] Use hb_subset_input_t inside of subset_options_t so that input defaults are shared between the library and cli.
6 years ago
Garret Rieger
3be0ffe45d
[subset] Add drop tables to subset input.
6 years ago
Behdad Esfahbod
9ef241cd40
[test] Add one more
6 years ago
Behdad Esfahbod
3efb7af7e2
[STAT] Fix sanitize condition
...
Oops!
Fixes https://oss-fuzz.com/testcase-detail/5696825891225600
6 years ago
Garret Rieger
6555f20958
[subset] Truncate empty gids at the end in retain-gids mode.
6 years ago
David Corbett
125c45ed36
Convert Consonant_Initial_Postfixed to CONS_MED
6 years ago
David Corbett
99ca956c13
Fix record-test.sh on machines without sha1sum
6 years ago
Behdad Esfahbod
f39934983f
[ucdn] Fix Hangul composition
...
https://github.com/grigorig/ucdn/issues/23
6 years ago
Behdad Esfahbod
148d883680
[test] Don't call deprecated API
6 years ago
Ebrahim Byagowi
30c059a978
[test] minor, fix -Weverything bot
6 years ago
Ebrahim Byagowi
25531a3039
[test] minor
...
style fix and add return statement
6 years ago
Behdad Esfahbod
25a5b287f2
Fix sanitize fail of extension sublookups
...
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=960331
6 years ago
Garret Rieger
e8ef0e627c
[subset] WIP convert hdmx subsetting to use iterators.
6 years ago
Ebrahim Byagowi
df237d2fe7
[test] Add https://crbug.com/oss-fuzz/14641 testcase
...
As 503748d
fix
6 years ago
Behdad Esfahbod
5ac4ab6868
[subset] fix for name table serializing with new serializer machinery
6 years ago
Behdad Esfahbod
49b1c763a0
[test] Run "fonttools ttx" instead of "ttx"
6 years ago
Ebrahim Byagowi
6d6edc8b25
[valgrind] Use libtool and support run-subset-fuzzer-tests ( #1668 )
6 years ago
Ebrahim Byagowi
62c6e17072
[test] Add crbug.com/oss-fuzz/14474 testcase
...
Fixed at 6977a95f
6 years ago
Qunxin Liu
1ca4b5c770
[subset] Add unit test for str de-dup
...
Also move the implementation of some methods from the .cc to the .hh
6 years ago
Qunxin Liu
6faac8df83
[subset] Subsetting Name Table Step 4
...
Add unit test and integration test
6 years ago
Behdad Esfahbod
42f4bd6b80
Minor warning fix again
6 years ago
Michiharu Ariza
ba0386060d
fix oss-fuzz issue 14345
6 years ago
David Corbett
6745a600bf
Comment out ot_languages where fallback suffices
6 years ago
Behdad Esfahbod
b7384c89e2
[fuzzing] Run valgrind with --leak-check=full
6 years ago
Behdad Esfahbod
3ff66c0029
[fuzzing] Fail if valgrind is requested but not found
6 years ago
Michiharu Ariza
e44b83aac0
replace test font SourceHanSans with its subet
6 years ago
Behdad Esfahbod
21bb80ebf2
[indic] Add back medial-consonant to grammar
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1592
6 years ago
Behdad Esfahbod
5ab6de7a6f
[khmer] Add trailing Coeng to syllable grammar
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1541
6 years ago
Behdad Esfahbod
ec2a5dc859
Use class templates for Null objects
...
This allows partial-instantiating custom Null object for template Lookup<T>.
Before, this had to be handcoded per instantiation. Apparently I missed
adding one for AAT::ankr.lookupTable, so it was getting the wrong (generic)
null for Lookup object, which is wrong and unsafe.
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=944346
6 years ago
Michiharu Ariza
bcb4e505d6
cff2 subset fuzzer issues ( #1619 )
...
* add check to FDArray::serialize
* add test files
* fix off by one
6 years ago
Ebrahim Byagowi
8aaab78efc
Allow zero length ranges in sanitization ( #1617 )
...
Fixes fvar table sanitization where there are no named instance
by allowing zero length ranges starting from Null() address.
Fixes #1607
6 years ago
Ebrahim Byagowi
8b6eb6cf46
Add a macOS 10.14.3 fonts tests ( #1608 )
6 years ago
Garret Rieger
4f37ab63de
Make hb_subset_input_glyph_set () actually do something.
6 years ago
Michiharu Ariza
a5e933eba0
Updated expected/cff-japanese fonts with retained FDs
6 years ago
Michiharu Ariza
e2856c2d85
retain FDSelect & FDArray with --retain-gids
...
so in sync with fonttools behavior
6 years ago
Michiharu Ariza
9328354a83
separate CFF from TrueType in full font tests
6 years ago
Michiharu Ariza
ec30a8a9ac
removed unused test data
6 years ago
Michiharu Ariza
c12862657f
added desubroutinize & retain-gids full test cases with CFF fonts
...
and CFF retain-gids fixes
6 years ago
Michiharu Ariza
f2908b4d8f
Implement subset --regain-gids option with CFF1/2
...
along with api tests & expected results
6 years ago
Garret Rieger
dc04261a5b
[subset] Update the subset fuzzer to determine which options to use based on data in the fuzzing test case.
...
Add support for toggling retain_gids.
6 years ago