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
3f8e7a98d3
[util/hb-subset] Add --layout to keep GDEF/GSUB/GPOS
...
Will become default and option removed in the future.
6 years ago
Behdad Esfahbod
2cc993e035
[dispatch] Minor
6 years ago
Behdad Esfahbod
602fbfe3c9
[sanitize] Fix sanitizing sublookup array
6 years ago
Behdad Esfahbod
c78e4784fb
[dispatch] Minor
6 years ago
Behdad Esfahbod
f9d211af1d
Revert "Minor fix re sanitize of Lookup subtables"
...
This reverts commit 7146718bef
.
Fixing differently.
6 years ago
Ebrahim Byagowi
7ee5c52345
minor style fix, use void in methods on no argument
6 years ago
Ebrahim Byagowi
a33f238f88
Merge pull request #1474 from fanc999/master.msvc
...
Few fixes for Visual Studio builds
6 years ago
Behdad Esfahbod
7146718bef
Minor fix re sanitize of Lookup subtables
...
We were dereferencing Null pointers and trying to sanitize them,
which is not necessary...
6 years ago
Behdad Esfahbod
ce069d1932
Minor
6 years ago
Behdad Esfahbod
1aea869446
[subset] Map glyphs during SingleSubst subsetting
...
Ha!
6 years ago
Behdad Esfahbod
41d1a1c10f
[subset] Minor
6 years ago
Behdad Esfahbod
2aba2c6c73
[serialize] Break down assert
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
Michiharu Ariza
333586245c
minimize use of assert: removed or changed to error handling ( #1467 )
6 years ago
Ebrahim Byagowi
f24498c1e9
[ci] Fix Travis macOS bot ICU issue ( #1472 )
6 years ago
👻
9f3a51ddb9
[ucdn] Fix header
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1470
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
Chun-wei Fan
09b16c536d
CMake: Fix Introspection builds
...
We need to add -DHB_AAT_H and -DHB_AAT_H_IN to the flags that are passed
to g-ir-scanner, so that introspection builds can proceed normally.
6 years ago
Ebrahim Byagowi
1683bb2c93
[glyf] minor
6 years ago
Ebrahim Byagowi
f7cfe99815
[os2] Move typometrics detection logic to the table ( #1465 )
6 years ago
Ebrahim Byagowi
47cf9a9633
Apply non-controversial parts of ot-style ( #1464 )
...
Things to be used in https://github.com/harfbuzz/harfbuzz/pull/1459
6 years ago
Michiharu Ariza
4d809696ef
fix for issue #1447 ( #1462 )
...
Added case for OpCode_BaseFontName. This opcode in spec but practically unused.
Added a comment for default case which can't be hit
6 years ago
Ebrahim Byagowi
1abd4fcaec
[fdsc] minor
6 years ago
Michiharu Ariza
59345cdef3
[CFF] Refix oss-fuzz 11714: set_blends (PR #1458 ) ( #1460 )
...
* pass subarray of stack to set_blends
* get_subarray to return a value, not ref
* restored error check (with tweak)
6 years ago
Behdad Esfahbod
20245f0000
Fix likely check
...
Ouch!
6 years ago
Behdad Esfahbod
d866e905fd
Add default value to first argument of sub_array()
6 years ago
Behdad Esfahbod
f1352f7486
Add sub_array to hb_vector_t
6 years ago
Behdad Esfahbod
ca23b71935
Add default-value for second arg of sub_array()
6 years ago
Ebrahim Byagowi
6ad3fcddaf
Merge pull request #1458 from harfbuzz/cff-check-blends
...
[CFF] oss-fuzz issue 11714: set_blends
6 years ago
Michiharu Ariza
ae087d10c2
add minimized test case for oss-fuzz issue 11714
6 years ago
Michiharu Ariza
1ccbdcf73b
Merge branch 'master' into cff-check-blends
6 years ago
Michiharu Ariza
14d29a1043
check number of blends against args on stack
6 years ago
Ebrahim Byagowi
f95324a335
Merge pull request #1457 from harfbuzz/cff-varstore-sanitize
...
[CFF] oss-fuzz issue 11713 (CFF2VariationStore::serialize)
6 years ago
Behdad Esfahbod
6727c4b6f0
Merge pull request #1456 from harfbuzz/cff-subr-sanitize
...
[CFF] fix oss-fuzz issue 11691 (BlendArg::set_blends)
6 years ago
Michiharu Ariza
9d8f3b0dfb
add minimized test case for oss-fuzz issue 11713
6 years ago
Michiharu Ariza
c31092ab34
sanitize variationStore in CFF2 against its size
6 years ago
Michiharu Ariza
34e3ef8ff3
Merge branch 'master' into cff-subr-sanitize
6 years ago
Michiharu Ariza
72d8f76368
add minimized test case for oss-fuzz issue 11691
6 years ago
Behdad Esfahbod
d9dabc00e9
Merge pull request #1454 from harfbuzz/cff-fixbcd
...
[CFF] fix oss-fuzz issue 11674: parse_bcd
6 years ago
Behdad Esfahbod
81cfd3c775
Merge pull request #1455 from harfbuzz/cff-strinc_assert
...
[CFF] fix oss-fuzz issue 11675 (ASSERT: count <= str.len)
6 years ago
Michiharu Ariza
6dcfda92c1
sanitize CFF1 & CFF2 global subrs
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
2cb9d4c183
Merge branch 'master' into cff-fixbcd
6 years ago
Michiharu Ariza
a5fa843c74
fixed a bug with fractional part in a negative value
6 years ago
Ebrahim Byagowi
8394a6cb25
[os2] Make newer table fields accessible ( #1452 )
6 years ago
Ebrahim Byagowi
5ab086ebb1
[fdsc] Implement the table parsing
...
Related to https://github.com/harfbuzz/harfbuzz/issues/1337
May used in addition to an API related to STAT.
Lots of Apple fonts have it.
6 years ago