Behdad Esfahbod
c99d13d860
[AAT] Comment
6 years ago
Behdad Esfahbod
f39b5603ff
Comment
6 years ago
Behdad Esfahbod
347ad454b8
[AAT] Remove unused code
6 years ago
Behdad Esfahbod
b344d4385a
[AAT] Allow null in ankr lookupTable offset
6 years ago
Behdad Esfahbod
14a560a245
[pragma GCC] Ignore -Wtype-limits
6 years ago
Behdad Esfahbod
41b4312e93
[ci] Remove -Werror from Travis
...
hb-machinery.hh:111:37: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Also ignore -Wtype-limits.
6 years ago
Behdad Esfahbod
3f2daae630
More GCC pragmas
6 years ago
Behdad Esfahbod
d6c5473e1f
Rename macro
6 years ago
Behdad Esfahbod
a9946b7cfe
Add more GCC warning pragmas
6 years ago
Behdad Esfahbod
868b0c0c2e
Move -Wcast-align to hb.hh
6 years ago
Behdad Esfahbod
8874eef8ff
Add pragram GCC diagnostic ignored "-Wunused-macros"
6 years ago
Behdad Esfahbod
cc8e9a436f
[AAT] Fully sanitize ankr table at sanitize time
...
Third try to fix access. Followup 6879efc2c1
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
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
a262eb3d0b
[aat] Minor
6 years ago
Behdad Esfahbod
c986ca15a6
Improve overflow avoidance
...
Better fix for 480406cd3e
This way we behave the same on 32bit and 64bit archs.
6 years ago
Behdad Esfahbod
0d2727f4fe
fix FDSelect fuzzing bug ( #1539 )
...
Rewrote struct FDSelect3_4.ranges as ArrayOf
Updated FDSelect3_4::sanitize () to call ranges.sanitize ()
nRanges now a function to return a reference to ranges.len
6 years ago
Behdad Esfahbod
9f6172d669
Move _POSIX_SOURCE definition
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1308
6 years ago
Behdad Esfahbod
91d774712f
[test] Add test for previous commit
6 years ago
Behdad Esfahbod
480406cd3e
Fix assertion on address overflow
...
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=917031
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
Michiharu Ariza
760303d411
deleted a duplicate fontdicts_mod.fini() call ( #1538 )
6 years ago
Ebrahim Byagowi
5110f3da9a
Add an initial .clang-format config
...
There are things can be improved on clang-format side I guess before
the full assertion, but is the best we can get for now I guess.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1536
6 years ago
Ebrahim Byagowi
099bca6d40
Minor, hack .editorconfig for vscode use
...
As VSCode and Atom https://github.com/Microsoft/vscode/issues/44438 don't support it
6 years ago
Michiharu Ariza
7b48641aa8
fix leak in subset_enc_supp_codes ( #1537 )
...
oss-fuzz issue 12310
6 years ago
Ebrahim Byagowi
97f67a3c3d
[ci] Enable more of GCC compile warnings ( #1533 )
6 years ago
Nathan Willis
ad95487038
Usermanual: small formatting and wording fixes.
6 years ago
Nathan Willis
ed13caddf2
Usermanual: small updates.
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
cclauss
f4da28b1f1
Python 3 fixes to gen-os2-unicode-ranges.py ( #1521 )
...
In Python 3, __reload()__ was moved and __sys.setdefaultencoding()__ because the default is already utf-8. Also __Error()__ is an _undefined name_ and __Exception()__ creates a generic exception.
6 years ago
Ebrahim Byagowi
e5989e0962
[cmake] Enable C++11 on CMake ( #1519 )
6 years ago
Behdad Esfahbod
d092fb2719
Ouch! Fix build on C++<11
6 years ago
Behdad Esfahbod
89949ed28d
Fix ubsan with passing nullptr to qsort()
6 years ago
Behdad Esfahbod
357a0a7ad3
Fix build on C++ < 11
6 years ago
Behdad Esfahbod
54c0a17310
[vector] Fix warning
6 years ago
Behdad Esfahbod
1043ddbee8
[aat] Minor
6 years ago
Behdad Esfahbod
71da9ca62f
[vector] Remove use of arrayZ() by using casts
6 years ago
Behdad Esfahbod
fa333e34d6
[vector] Remove static_array
...
Was good idea, but with C++ types with constructor/destructor, was getting in
the way as compiler was destructing those items where it was not desired.
Since C++ does not allow zero-sized arrays, just remove it...
6 years ago
Behdad Esfahbod
ab2258a419
[vector] Use allocated = -1 to signify failure
6 years ago
Michiharu Ariza
09fa536d89
fix lealk with cff2::accelerator_templ_t::topDict ( #1517 )
6 years ago
Behdad Esfahbod
3b81442cd5
[vector] Change pre-alloced count from 8 to 2
...
I'm thinking about dropping it to zero, but that needs slight code changes.
6 years ago
Behdad Esfahbod
d25a2f1496
Fix a few warnings
6 years ago
Behdad Esfahbod
85003b594b
[iter] Fix warning
6 years ago
Behdad Esfahbod
e4355b1ca1
[set] Add iter_t as alias to const_iter_t
6 years ago
Behdad Esfahbod
33f8de6186
[set] Change to const_iter
6 years ago
Behdad Esfahbod
f88fed5cd8
[set] Cache length in iterator
6 years ago
Ebrahim Byagowi
d0a706c7fd
Minor, remove redundant inline
6 years ago
Ebrahim Byagowi
ae6e348d64
Minor, tweak spaces
6 years ago