Behdad Esfahbod
5b13e458c3
Fix build
6 years ago
Behdad Esfahbod
a77bd6bb89
[pragma] GCC diagnostic ignored "-Wclass-memaccess"
6 years ago
Behdad Esfahbod
e1302842d9
[ci] Remove unnecessary warning declarations
...
clang -Weverything still left to be ported to pragmas
6 years ago
Behdad Esfahbod
436c7b294a
[pragma] ignored -Wunsafe-loop-optimizations // TODO fix
6 years ago
Behdad Esfahbod
e3b3181e9d
[pragma] error -Wclass-memaccess
6 years ago
Behdad Esfahbod
1a6b97a491
[pragma] More
6 years ago
Behdad Esfahbod
06e8091661
[pragma] More
6 years ago
Behdad Esfahbod
1077e40bf1
[pragma] Flesh out more
6 years ago
Behdad Esfahbod
7e6bd510fc
Use NNOffsetTo<> in rest of places
6 years ago
Behdad Esfahbod
b1152d5e66
Use NNOffsetTo<>
6 years ago
Behdad Esfahbod
205d72a198
Add NNOffsetTo<>
6 years ago
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