Michiharu Ariza
511518c759
add api test for tt var advance widths
...
stripped HVAR from SourceSansVariable-Roman.abc.ttf so glyf gets parsed
6 years ago
Michiharu Ariza
139e87b56c
fix tt var extents & add test
6 years ago
Michiharu Ariza
9584b090bb
cff2 subset fuzzer issues ( #1619 )
...
* add check to FDArray::serialize
* add test files
* fix off by one
6 years ago
Ebrahim Byagowi
5bbe78a0f3
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
9b5556d985
Add a macOS 10.14.3 fonts tests ( #1608 )
6 years ago
Garret Rieger
d0b6d539f6
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
Garret Rieger
e6ffcc5904
[subset] Add expected files for retain-gids integration tests.
6 years ago
Garret Rieger
a903f9c228
[subset] Add some subsetting integration tests covering retain gids.
6 years ago
Garret Rieger
ccc59dc612
[subset] Add unit test for glyf subsetting and retain gids.
6 years ago
Behdad Esfahbod
a9321cb5f8
Fix mac test
6 years ago
Behdad Esfahbod
06358ae974
[AAT] Add test for recent Ligature stack fix, using Zapfino on Mac
6 years ago
Behdad Esfahbod
00f06d1aa6
Fix test
6 years ago
Behdad Esfahbod
9f31417733
Form cluster for Emoji sub-region tag sequences
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1556
6 years ago
Behdad Esfahbod
5034f8f2ab
Fix macos tests with previous commit
6 years ago
Behdad Esfahbod
3ecda71041
Adjust mark offsets when zeroing from fallback mark positioning code
...
Adjust tests.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1532
6 years ago
Behdad Esfahbod
cbe0ed117a
[AAT] Re-enable tests MORX-31 and MORX-41
6 years ago
Behdad Esfahbod
410731d3fb
[test/text-rendering-tests] Update from upstream
6 years ago
Behdad Esfahbod
789396ed6b
Remove wrongly added files
6 years ago
Michiharu Ariza
28917e58f9
init interp_env_t::hintmask_size
...
fixes issue #1547
6 years ago
Behdad Esfahbod
6879efc2c1
[AAT] Fix anchor bound checking, again
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12532
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=922303
6 years ago
Behdad Esfahbod
91d774712f
[test] Add test for previous commit
6 years ago
Behdad Esfahbod
7a6686a589
[AAT] Fix mort ContextualSubtable offset access
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12312
6 years ago
Behdad Esfahbod
a3fa7d3336
[AAT] Fix ankr table access
...
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=918340
6 years ago
cclauss
26c5b54fb0
CircleCI: Test for Python 3 syntax errors and undefined names ( #1522 )
...
Catch missing imports and errors like #1520 and #1521
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org ) issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
6 years ago
Behdad Esfahbod
686e6f2e40
Fix automake warnings
...
[skip ci]
6 years ago
cclauss
b5c12b9f4d
print() is a function in Python 3 ( #1520 )
6 years ago
fanc999
3ee4ea9456
Fix build on older Visual Studio versions ( #1499 )
...
* src/hb-cff-interp-dict-common.hh: Use ull for unsigned int64_t
The llu suffix does not work for older Visual Studio versions
(pre-2013), but ull works for all the compilers that we attempt to
support.
* test/api: Fix build on pre-C99 compilers
Ensure variables are declared at the top of the block.
* src/hb-dsalgs.hh: Add specialization for hb_is_signed<> for __int8
Pre-Visual Studio 2010 does not consider __int8 (which is typedef'ed to
int8_t) to be equivilant to signed char, so the compiler cannot find the
corresponding hb_is_signed<> specialization that is needed.
The interesting thing is unsigned __int8 is considered to be equivilant
to unsigned char, so as the other types (short, int, long) that we look
for here, so only the specialization for __int8 is added here.
This will fix builds on Visual Studio 2008 at least.
6 years ago
Michiharu Ariza
798e98c47b
[CFF] bad offset in Index ( #1476 )
...
* Update hb-ot-cff-common.hh
* fix bug
* bummer fix wasn't hit. refix
* additional sanity check
* Added test cases for oss-fuzz issues 11805, 11806
6 years ago
Michiharu Ariza
bcb4ecaf68
[CFF] check out of range FD index ( #1477 )
...
* add fd index checks to subr subsetter
also added oss-fuzz test case
* undid SubrSubsetParam::is_valid
because already validated by SubrClosures.valid
6 years ago
Behdad Esfahbod
9844c880e2
Minor
6 years ago
Michiharu Ariza
2941208f1e
[CFF] oss-fuzz issue 11690 ASSERT: substr.offset >= opStart ( #1461 )
...
* fix oss-fuzz 11690: substr.offset >= opStart
detect recursive subroutine call & handle as error
* fix build failure
* add minimized test case for oss-fuzz 11690
* removed asserts
6 years ago
David Corbett
b225593d6b
Correct REPLACEMENT CHARACTER's code point to FFFD ( #1471 )
6 years ago
Chun-wei Fan
1e09add232
test/api: Fix building on pre-C99 compilers
...
Ensure variables are declared at the top of the block.
6 years ago
Michiharu Ariza
ae087d10c2
add minimized test case for oss-fuzz issue 11714
6 years ago
Michiharu Ariza
9d8f3b0dfb
add minimized test case for oss-fuzz issue 11713
6 years ago
Michiharu Ariza
72d8f76368
add minimized test case for oss-fuzz issue 11691
6 years ago
Michiharu Ariza
6708c5595f
fix oss-fuzz issue 11675 (ASSERT: count <= str.len)
...
Also added an additional error check to avail ()
6 years ago
Michiharu Ariza
010e2ddb38
minimized test case for oss-fuzz issue 11674
6 years ago
Michiharu Ariza
32cc46c75a
[CFF] fix oss-fuzz issue 11670: NULL dereference ( #1450 )
...
* guard against no subr access
* code tweak
* add minimized testcase for oss-fuzz 11670 (Null deference)
6 years ago
Michiharu Ariza
78f639b8bf
added minimized testcase for oss-fuzz issue 11657
6 years ago
Michiharu Ariza
b61f74f69a
added minimized test case for oss-fuzz issue 11662
6 years ago
Michiharu Ariza
c48f53d309
more double changes
6 years ago
Michiharu Ariza
9424e80526
added minimized test cases
6 years ago