Garret Rieger
44ab8c45d7
Fix a crash bug in the woff2 decoder when totalSfntSize in the woff2 header is <= 0.
2017-07-19 17:35:57 -07:00
Garret Rieger
849bdb0d24
Fix a crash in the woff2 encoder when it encounters a loca table with a length of zero.
2017-07-19 17:35:13 -07:00
Garret Rieger
4f659ddbad
Allow endian-aware optimizations only on whitelisted CPUs.
2017-07-19 17:34:24 -07:00
Garret Rieger
12141fdaf2
Support tables with 0 length (which previously failed in multiple places).
2017-07-19 17:32:38 -07:00
Rod Sheeter
cbea7b962e
Make it possible to disable noisy logging in support of #348
2017-03-06 10:30:05 -08:00
rsheeter
68e9ab5d45
Merge pull request #75 from eustas/master
...
Fix fuzzer library linkage (missing dictionary.o)
2017-02-25 09:17:42 -08:00
Eugene Kliuchnikov
a9d21c7d0b
Fix fuzzer library linkage (missing dictionary.o)
2017-02-25 18:05:38 +01:00
rsheeter
49abfeab8a
Merge pull request #68 from eustas/master
...
Roll new brotli version
2017-02-23 13:09:31 -08:00
rsheeter
cdd19711f4
Merge branch 'master' into master
2017-02-23 13:09:01 -08:00
rsheeter
14715c32c2
Merge pull request #74 from rsheeter/master
...
Avoid shadowing
2017-02-23 10:45:24 -08:00
Rod Sheeter
086bc06ce9
Avoid shadowing
2017-02-23 10:29:01 -08:00
Rod Sheeter
82a9f3afb2
Add check for size of head table to woff2 enc
2017-02-15 13:52:56 -08:00
rsheeter
b91b020ced
Merge pull request #71 from google/oss-fuzz
...
Add fuzzers for consumption by https://github.com/google/oss-fuzz
2017-01-03 16:23:33 -08:00
Rod Sheeter
8109a2cc2b
Add fuzzers for consumption by https://github.com/google/oss-fuzz
2017-01-03 16:21:48 -08:00
Eugene Kliuchnikov
9db42c09e9
Roll new brotli version.
2016-12-06 11:14:53 +01:00
Rod Sheeter
63b8fb6d0d
Correct comment slightly
2016-09-21 14:48:52 -07:00
Rod Sheeter
58f6fe2aea
Add a comment to clarify which ConvertWOFF2ToTTF should be preferred
2016-09-21 14:35:34 -07:00
rsheeter
cd3078d6d7
Merge pull request #51 from khaledhosny/write-failure
...
Don’t ignore write failure
2016-08-09 08:12:39 -07:00
Khaled Hosny
cdd850ef52
Don’t ignore write failure
...
Makes it easy to find the source of the problems than failing later.
2016-08-09 15:59:50 +02:00
Rod Sheeter
afbecce5ff
Fix TTC detection, based on findings by libFuzzer
2016-05-25 08:53:43 -07:00
Rod Sheeter
8f3ff26c37
Fix an out of bounds access found by libFuzzer
2016-05-17 16:00:38 -07:00
Rod Sheeter
a15a8ab86b
Fixes for bugs uncovered by libFuzzer analysis. A write past buffer, a potential DOS by way of giant alloc, and an out of range access.
2016-05-06 13:14:42 -07:00
Rod Sheeter
9476664fd6
Fix bug where table could mismatch header vs data when allow_transforms was set false (not easily possible w/current tools)
2016-05-06 13:10:33 -07:00
Rod Sheeter
2bc6acf6df
Push fix for https://bugs.chromium.org/p/chromium/issues/detail?id=604649
2016-04-21 09:29:50 -07:00
Rod Sheeter
07cd303dd2
Update to latest brotli. Use size_t more consistently. Remove dead code.
2016-04-21 09:27:28 -07:00
Rod Sheeter
4e698b8c6c
Fix clang compile by adding <string> to woff2_out.h
2016-03-09 10:32:53 -08:00
rsheeter
a3a4d48f97
Merge pull request #48 from google/length
...
Stop trusting header totalSfntSize and glyf origLength
2016-03-08 12:50:01 -08:00
Rod Sheeter
b220918cab
Stop trusting header totalSfntSize and glyf origLength
2016-03-08 12:30:08 -08:00
rsheeter
643c7b4589
Merge pull request #47 from irori/brotli-license
...
Update comment about Brotli license
2016-02-24 08:55:29 -08:00
Kunihiko Sakamoto
df59a8e366
Update comment about Brotli license
2016-02-24 16:00:43 +09:00
rsheeter
fb1ae7c877
Merge pull request #45 from ssinger/issue44
...
Fix issue #44
2016-02-19 10:42:40 -08:00
Rod Sheeter
f4bb8b83c5
Add CONTRIBUTING.md
2016-02-18 09:46:27 -08:00
Steve Singer
9ba0580721
Fix issue #44
...
Use a static_cast instead of a reinterpert_cast so the code compiles
2016-02-10 22:25:06 -05:00
Rod Sheeter
d1efde9124
Update woff2_dec.cc range checking
2016-02-04 08:24:36 -08:00
rsheeter
ee1b44e0b4
Merge pull request #43 from google/hmtx
...
Tweaks requested by @fred-wang; null transform support
2016-01-28 11:38:36 -08:00
Rod Sheeter
bdf886a06b
Allow WOFF2Params to specify no transformations at all
2016-01-28 11:36:18 -08:00
Rod Sheeter
14f4cb67ec
Tweaks requested by @fred-wang to help Mozilla build
2016-01-28 11:34:31 -08:00
rsheeter
256cca5b2c
Merge pull request #42 from google/hmtx
...
hmtx optimization decoding. never encodes hmtx optimized as yet
2016-01-20 14:24:57 -08:00
Rod Sheeter
c817c969bf
hmtx optimization decoding. never encodes hmtx optimized as yet; need a cli param.
2016-01-20 14:10:02 -08:00
rsheeter
db0448815a
Merge pull request #41 from Lucas-C/master
...
Definining __STDC_FORMAT_MACROS to support old gcc versions
2016-01-04 12:32:09 -08:00
Lucas Cimon
1414a2690b
Definining __STDC_FORMAT_MACROS to support old gcc versions + explicitly raising an error when Brotli submodule is not initialized - cf. issue #19
2015-12-31 09:20:31 +01:00
rsheeter
b2e7af9f6f
Merge pull request #39 from irori/c4018-fix
...
Fix signed/unsigned comparison warnings on MSVC
2015-11-30 07:21:35 -08:00
Kunihiko Sakamoto
965d077bde
Fix signed/unsigned comparison warnings on MSVC
2015-11-17 18:20:03 +09:00
rsheeter
6dbcb5844e
Merge pull request #34 from khaledhosny/master
...
Don’t print to stderr unless a standalone binary
2015-10-28 10:28:58 -07:00
Rod Sheeter
fde07429be
Be more accepting of fonts with unusual sets of tables
2015-10-26 07:16:42 -07:00
Khaled Hosny
17ed658d0a
Don’t print to stderr unless a standalone binary
...
We will use woff2 code from OTS and it is undesirable for a library to
print messages to stderr.
2015-08-28 01:30:03 +02:00
Rod Sheeter
eeec219f20
Only reorder the table directory
2015-07-27 08:47:58 -07:00
rsheeter
600ffc29d5
Merge pull request #27 from khaledhosny/kill-continuestream
...
Kill kWoff2FlagsContinueStream
2015-07-15 11:34:35 -04:00
Khaled Hosny
208c8f854e
Kill kWoff2FlagsContinueStream
...
There is only a single data stream for all the compressed tables, but
the code was originally written for separately compressed tables then
retrofitted, so this is an attempt to streamline it a bit.
2015-07-15 11:25:52 +02:00
Rod Sheeter
4e3bb3418f
Merge PR #16 (reject composite glyphs w/o bbox), slightly modified to match recent code updates (mostly just adding branch predictions)
2015-07-14 10:12:40 -07:00