Behdad Esfahbod
5efe360986
Rename (Unsized)OffsetListOf
4 years ago
Behdad Esfahbod
6c4e0491d7
s/OffsetArrayOf/Array16OfOffset16To/g
4 years ago
Behdad Esfahbod
1fc6b69aed
s/UnsizedOffsetArrayOf/UnsizedArray16OfOffsetTo/g
4 years ago
Behdad Esfahbod
2a54c9f744
.
4 years ago
Behdad Esfahbod
c539afb08b
[CFF] Use NNOffsetTo<> instead of OffsetTo<>
...
I'm pretty sure that's what is intended.
4 years ago
Behdad Esfahbod
9b4b58493b
Fixup for recent OffsetTo<> changes
4 years ago
Behdad Esfahbod
ad28f973f3
Rename offset types to be explicit about their size
...
Add Offset16To<>, Offset24To<>, and Offset32To<> for most use-cases.
4 years ago
Garret Rieger
c5c13006a1
[subset] fix memory leaks found in https://oss-fuzz.com/testcase-detail/5179935334465536
4 years ago
Behdad Esfahbod
bd2950b393
Make VariationStore::get_delta(outer, inner) private
4 years ago
Behdad Esfahbod
934675a429
Use VarIdx in VariationDevice
4 years ago
Behdad Esfahbod
0f7f7536b9
[hvar] Change variation-index types from "unsigned int" to uint32_t
4 years ago
Behdad Esfahbod
9ffc46b8ff
Add VarIdx
4 years ago
Behdad Esfahbod
2179281c40
Add Offset24
4 years ago
Behdad Esfahbod
b3159ed8d2
[util] Silence compiler warning
4 years ago
Andrzej Perczak
cab9d5a57d
hb-config: Include config-override earlier
...
Currently config-override.h is included at the end of this file. This caused a problem for me while undefing HB_DISABLE_DEPRECATED, namely HB_IF_NOT_DEPRECATED was defined before actual undef took place and broke the whole build. I believe it would break builds for some other defines, too. Moving config-override.h include right after predefined configs is more sane and fixes all potential problems with includes.
4 years ago
Garret Rieger
adca4ce071
[subset] fixes https://oss-fuzz.com/testcase-detail/6173520787800064 .
...
Caused by incorrect bounds check in glyph closure for context lookups.
4 years ago
Garret Rieger
9f77a0c1ff
[subset] use hb_set_clear to avoid calling clear() on null pool set.
4 years ago
Garret Rieger
752e393ad2
[subset] avoid calling clear on null pool set.
4 years ago
Behdad Esfahbod
9ed5f04a70
[subset] Simplify recent out-of-memory fixes
...
By checking return status of map->set().
4 years ago
Behdad Esfahbod
a8f9f85a91
[map] Return success from ->set()
4 years ago
Garret Rieger
8741914a80
[subset] fix memory leak when map insert fails.
4 years ago
Behdad Esfahbod
2397689387
Remove hb_success_t
...
Was not rolled-out yet. So just expand.
4 years ago
Behdad Esfahbod
7a2eda7817
Move code around
4 years ago
Behdad Esfahbod
bcb57dccaa
[sanitize] Add short-circuit to ArrayOfM1
...
Like the sibling ArrayOf types.
4 years ago
Garret Rieger
5b6da6d2f0
[subset] add fuzzer test case.
4 years ago
Garret Rieger
52df6b9fd8
[subset] check for set insertion success.
4 years ago
Garret Rieger
c6adb90a27
[subset] fix nullptr deref.
4 years ago
Garret Rieger
9a3537e5f6
[subset] invert err() return value. Undo previous change to check_success.
4 years ago
Garret Rieger
a804a0c903
[subset] add fuzzer test case.
4 years ago
Garret Rieger
cdba5d44c2
[subset] fix incorrect handling of return value in check_success in the error case.
4 years ago
Behdad Esfahbod
05e845c49a
Make previous commit gcc-only
4 years ago
Behdad Esfahbod
b5e4032392
-Wno-unused-result
...
GCC doesn't let one turn off the warning using "(void) foo()".
People have introduced macros that do "unused << foo()" instead.
Until we do something similar, silence gcc.
Clang on the other hand understands "(void) foo()".
4 years ago
Khaled Hosny
c30349d54e
[hb-view] Support kitty inline images protocol
...
https://github.com/harfbuzz/harfbuzz/issues/2758
4 years ago
Khaled Hosny
f7d5889b3e
[hb-view] Support iTerm2 inline images protocol
...
https://github.com/harfbuzz/harfbuzz/issues/2758
4 years ago
Khaled Hosny
743baf3543
[build] Don’t look for FontConfig
...
We don’t currently use it anywhere. It was used briefly for the
hb-fc-list tool, but this tool have not been built since 2015:
commit cd042fc8c4
Author: Behdad Esfahbod <behdad@behdad.org>
Date: Thu Jun 18 10:55:13 2015 -0700
[util] Disable hb-fc-list for now
Until I figure out what to do about the API, and finalize
the tool.
4 years ago
Qunxin Liu
95230e291d
[subset] support subsetting GSUB8
4 years ago
David Corbett
d18915f920
Reformat gen-tag-table.py
4 years ago
Garret Rieger
3c8273ab68
Check for alloc failures on the gsub/gpos_langsys maps in subset plan creation.
4 years ago
Behdad Esfahbod
29708e959a
[aat] Fix offsetToIndex math for out-of-bounds values
...
Previously, some bad font data was accidentally being interpretted as
legit if it happened to not fall out of memory bounds. The intention
of the code was what this commit does. I'm surprised we weren't getting
a "arithmetic between signed and unsigned values" warning / error
before.
4 years ago
Behdad Esfahbod
c5d6bdb4bf
Merge pull request #2857 from googlefonts/repacker
...
[subset] add a GSUB/GPOS table repacker to resolve offset overflows.
4 years ago
Garret Rieger
46bf03d691
[subset] add NODISCARD to error checking methods on serializer.
4 years ago
Garret Rieger
3827a3eb56
[subset] rename serializer::set_error() to err().
4 years ago
Garret Rieger
f561fa6e4c
Change priority queue to use (priority, value) instead of (value, priority).
4 years ago
Garret Rieger
b14475d2ae
[subset] further changes to serializer error handling.
...
- Rename enum type and enum members.
- in_errors() now returns true for any error having been set. hb-subset now looks for offset overflow only errors to divert to repacker.
- Added INT_OVERFLOW and ARRAY_OVERFLOW enum values.
4 years ago
Garret Rieger
73ed59f7a6
[subset] store errors in the serializer as a flag set.
...
Make check_assign/check_equal specify the type of error to set.
4 years ago
Garret Rieger
b9ecc7420d
[subset] init offset_overflow in hb_serialize_context_t.
4 years ago
Garret Rieger
cf79fc342d
[subset] limit priority bumps to 16.
4 years ago
Garret Rieger
0104409959
Fix repack_tests for distcheck.
4 years ago
Garret Rieger
e2f14e81bd
[subset] fix memory leaks in test-repacker.
4 years ago
Garret Rieger
d3e2ba7c01
[subset] comment cleanup in hb-repacker.hh
4 years ago