platform/upstream/libHarfBuzzSharp.git
6 years ago[docs] Fix warning
Behdad Esfahbod [Sat, 20 Oct 2018 23:49:16 +0000 (16:49 -0700)]
[docs] Fix warning

Fixes https://github.com/harfbuzz/harfbuzz/issues/1260

6 years ago[kerx] Implement tuple-kerning in Format0
Behdad Esfahbod [Sat, 20 Oct 2018 21:56:28 +0000 (14:56 -0700)]
[kerx] Implement tuple-kerning in Format0

6 years ago2.0.2
Behdad Esfahbod [Sat, 20 Oct 2018 20:14:07 +0000 (13:14 -0700)]
2.0.2

6 years ago[test] Fix -Wunused-parameter on test-font.c
Ebrahim Byagowi [Sat, 20 Oct 2018 19:53:32 +0000 (23:23 +0330)]
[test] Fix -Wunused-parameter on test-font.c

6 years ago[kerx] Fix sanitize of KerxSubtableFormat2::array read
Behdad Esfahbod [Sat, 20 Oct 2018 19:09:41 +0000 (12:09 -0700)]
[kerx] Fix sanitize of KerxSubtableFormat2::array read

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11033

6 years ago[aat] Fix LookupFormat10 sanitize
Behdad Esfahbod [Sat, 20 Oct 2018 19:04:51 +0000 (12:04 -0700)]
[aat] Fix LookupFormat10 sanitize

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11060

6 years ago[test] Fix leak
Behdad Esfahbod [Sat, 20 Oct 2018 18:56:30 +0000 (11:56 -0700)]
[test] Fix leak

6 years ago[TODO] Remove BCP 47 language handling item
Ebrahim Byagowi [Sat, 20 Oct 2018 17:43:25 +0000 (21:13 +0330)]
[TODO] Remove BCP 47 language handling item

Closes https://github.com/harfbuzz/harfbuzz/issues/1286

6 years ago[fuzzing] Add new testcases
Ebrahim Byagowi [Sat, 20 Oct 2018 08:50:30 +0000 (12:20 +0330)]
[fuzzing] Add new testcases

6 years agoMerge pull request #1283 from khaledhosny/cygwin
Ebrahim Byagowi [Sat, 20 Oct 2018 04:15:46 +0000 (07:45 +0330)]
Merge pull request #1283 from khaledhosny/cygwin

Cygwin fixes and CI build

6 years agoRun valgrind on run-shape-fuzzer only when RUN_VALGRIND is set (#1285)
Ebrahim Byagowi [Sat, 20 Oct 2018 04:09:18 +0000 (07:39 +0330)]
Run valgrind on run-shape-fuzzer only when RUN_VALGRIND is set (#1285)

6 years agoMinor
Behdad Esfahbod [Sat, 20 Oct 2018 03:00:36 +0000 (20:00 -0700)]
Minor

6 years agoOops. Fix build
Behdad Esfahbod [Sat, 20 Oct 2018 02:59:41 +0000 (19:59 -0700)]
Oops. Fix build

6 years ago[test-map] Cosmetic
Behdad Esfahbod [Sat, 20 Oct 2018 02:47:27 +0000 (19:47 -0700)]
[test-map] Cosmetic

6 years ago2.0.1
Behdad Esfahbod [Sat, 20 Oct 2018 02:37:46 +0000 (19:37 -0700)]
2.0.1

6 years agoMake more 'coords' params const.
Bruce Mitchener [Sat, 20 Oct 2018 01:09:52 +0000 (08:09 +0700)]
Make more 'coords' params const.

6 years ago[font] Fix parallel funcs passing to eachover in infinite-loop
Behdad Esfahbod [Sat, 20 Oct 2018 02:12:33 +0000 (19:12 -0700)]
[font] Fix parallel funcs passing to eachover in infinite-loop

Fixes test just added.

6 years ago[font] Add failing test amongst font-func parallels infinite-looping
Behdad Esfahbod [Sat, 20 Oct 2018 02:01:01 +0000 (19:01 -0700)]
[font] Add failing test amongst font-func parallels infinite-looping

Reported by Nona while updating Android to HarfBuzz 2.0.0.

6 years agoAdd Cygwin CI build
Khaled Hosny [Fri, 19 Oct 2018 22:18:36 +0000 (00:18 +0200)]
Add Cygwin CI build

Fixes https://github.com/harfbuzz/harfbuzz/issues/1274

6 years ago[kerx] Implement variation-kerning tables (without the variation part)
Behdad Esfahbod [Fri, 19 Oct 2018 23:06:54 +0000 (16:06 -0700)]
[kerx] Implement variation-kerning tables (without the variation part)

SFSNDisplay uses these.  We just apply the default kern without
variations right now.  But at least makes the default kern work.

6 years ago[aat] Implement LookupFormat10
Behdad Esfahbod [Fri, 19 Oct 2018 22:23:49 +0000 (15:23 -0700)]
[aat] Implement LookupFormat10

6 years agoUse g_strdup instead of strdup
Khaled Hosny [Fri, 19 Oct 2018 20:21:39 +0000 (22:21 +0200)]
Use g_strdup instead of strdup

Cygwin does not seem to have strdup.

6 years agoUse O_BINARY instead of _O_BINARY
Khaled Hosny [Fri, 19 Oct 2018 20:04:56 +0000 (22:04 +0200)]
Use O_BINARY instead of _O_BINARY

Cygwin does not seem to have the later

6 years ago[trak] Fix test for previous fix
Behdad Esfahbod [Fri, 19 Oct 2018 18:20:14 +0000 (11:20 -0700)]
[trak] Fix test for previous fix

6 years ago[RELEASING] Post-mortem
Behdad Esfahbod [Fri, 19 Oct 2018 18:15:35 +0000 (11:15 -0700)]
[RELEASING] Post-mortem

Re https://github.com/harfbuzz/harfbuzz/issues/1271

6 years ago[trak] Fix extrapolation at end side
Behdad Esfahbod [Fri, 19 Oct 2018 18:00:20 +0000 (11:00 -0700)]
[trak] Fix extrapolation at end side

6 years ago[kerx] Whitespace
Behdad Esfahbod [Fri, 19 Oct 2018 16:58:45 +0000 (09:58 -0700)]
[kerx] Whitespace

6 years agoFix hb_map_is_empty logic
Ebrahim Byagowi [Fri, 19 Oct 2018 08:35:26 +0000 (12:05 +0330)]
Fix hb_map_is_empty logic

This needs reviewing

6 years agoAdd API tests for hb_map_t
Ebrahim Byagowi [Fri, 19 Oct 2018 08:34:47 +0000 (12:04 +0330)]
Add API tests for hb_map_t

6 years ago[test] cosmetic, use g_assert_cmpint
Ebrahim Byagowi [Fri, 19 Oct 2018 06:50:16 +0000 (10:20 +0330)]
[test] cosmetic, use g_assert_cmpint

6 years agoDon't report deprecated symbols as unused symbols
Ebrahim Byagowi [Fri, 19 Oct 2018 06:44:25 +0000 (10:14 +0330)]
Don't report deprecated symbols as unused symbols

6 years agoAdd test for hb_set_del
Ebrahim Byagowi [Fri, 19 Oct 2018 06:43:53 +0000 (10:13 +0330)]
Add test for hb_set_del

6 years agoRemove redundant return at end of void-returning function.
Bruce Mitchener [Fri, 19 Oct 2018 15:12:25 +0000 (22:12 +0700)]
Remove redundant return at end of void-returning function.

6 years ago[ci] Run valgrind on test/api
Ebrahim Byagowi [Fri, 19 Oct 2018 15:16:41 +0000 (18:46 +0330)]
[ci] Run valgrind on test/api

run-shape-fuzzer-tests.py automatically runs valgrind if see available
but test/api runs it by request, we probably should normalize the approaches
later

6 years agoUse bool literals instead of 0/1.
Bruce Mitchener [Thu, 18 Oct 2018 15:18:42 +0000 (22:18 +0700)]
Use bool literals instead of 0/1.

6 years agoFix typos.
Bruce Mitchener [Fri, 19 Oct 2018 15:49:21 +0000 (22:49 +0700)]
Fix typos.

6 years agoEnable valgrind and dedicate a bot to it
Ebrahim Byagowi [Fri, 19 Oct 2018 05:54:21 +0000 (09:24 +0330)]
Enable valgrind and dedicate a bot to it

6 years agoMinor, tweak spaces on hb-shape-fuzzer.cc
Ebrahim Byagowi [Fri, 19 Oct 2018 05:36:42 +0000 (09:06 +0330)]
Minor, tweak spaces on hb-shape-fuzzer.cc

6 years ago[fuzz] Add more found cases (#1275)
Ebrahim Byagowi [Fri, 19 Oct 2018 04:39:53 +0000 (08:09 +0330)]
[fuzz] Add more found cases (#1275)

6 years ago2.0.0
Behdad Esfahbod [Thu, 18 Oct 2018 12:58:17 +0000 (05:58 -0700)]
2.0.0

6 years ago[test] Don't use newer glib API
Behdad Esfahbod [Thu, 18 Oct 2018 12:58:04 +0000 (05:58 -0700)]
[test] Don't use newer glib API

6 years ago[ubsan] Use unsigned int instead enum where needed (#1270)
Ebrahim Byagowi [Thu, 18 Oct 2018 07:36:37 +0000 (11:06 +0330)]
[ubsan] Use unsigned int instead enum where needed (#1270)

Actually the check is right,

On -myanmar.hh, on that particular switch, OT_C is indic_category_t
but OT_D is myanmar_category_t so we are mixing the types in one variable.

And on -arabic.cc, step can goes one number higher than step_t enum in the
loop so we are actually using it as an unsinged int.

6 years ago[AUTHORS] Add Ebrahim and Khaled
Behdad Esfahbod [Thu, 18 Oct 2018 07:35:01 +0000 (00:35 -0700)]
[AUTHORS] Add Ebrahim and Khaled

6 years agoMore warning fix
Behdad Esfahbod [Thu, 18 Oct 2018 06:06:53 +0000 (23:06 -0700)]
More warning fix

Okay, let's see if the gods are happy now...

6 years agoFix build
Behdad Esfahbod [Thu, 18 Oct 2018 06:06:37 +0000 (23:06 -0700)]
Fix build

6 years agoFix warning
Behdad Esfahbod [Thu, 18 Oct 2018 05:58:43 +0000 (22:58 -0700)]
Fix warning

6 years agoKick bots
Behdad Esfahbod [Thu, 18 Oct 2018 05:42:47 +0000 (22:42 -0700)]
Kick bots

6 years agoFix some wierdness...
Behdad Esfahbod [Thu, 18 Oct 2018 05:37:34 +0000 (22:37 -0700)]
Fix some wierdness...

6 years ago[aat] Fix sanitize slowdown
Behdad Esfahbod [Thu, 18 Oct 2018 05:34:16 +0000 (22:34 -0700)]
[aat] Fix sanitize slowdown

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11034

6 years agoRevert "[test] Remove not-fixed yet testcases (#1268)"
Behdad Esfahbod [Thu, 18 Oct 2018 04:52:14 +0000 (21:52 -0700)]
Revert "[test] Remove not-fixed yet testcases (#1268)"

This reverts commit 191eef823fe95355425621f8e002dfe7fe632383.

6 years ago[ci/ubsan] Disable enum sanitization
Ebrahim Byagowi [Thu, 18 Oct 2018 05:05:20 +0000 (08:35 +0330)]
[ci/ubsan] Disable enum sanitization

Behdad apparently not interested on them

6 years ago[aat] Another try at fixing Lookup null objects...
Behdad Esfahbod [Thu, 18 Oct 2018 04:41:25 +0000 (21:41 -0700)]
[aat] Another try at fixing Lookup null objects...

Ugly as hell, and don't even understand why some bits are needed.
But the logic is sound.

6 years ago[test] Remove not-fixed yet testcases (#1268)
Ebrahim Byagowi [Thu, 18 Oct 2018 04:34:18 +0000 (08:04 +0330)]
[test] Remove not-fixed yet testcases (#1268)

I added them but now that I think, it is a bad idea to have them as
fuzzing bots will find good seeds to tweak in order to find easy new
testcases which causes duplicated issues.

6 years ago[test/shape-fuzzer] fail on timeout and ubsan errors (#1267)
Ebrahim Byagowi [Thu, 18 Oct 2018 04:12:20 +0000 (07:42 +0330)]
[test/shape-fuzzer] fail on timeout and ubsan errors (#1267)

6 years ago[util] Better file-not-found error from hb-shape / hb-view
Ebrahim Byagowi [Thu, 18 Oct 2018 04:08:47 +0000 (07:38 +0330)]
[util] Better file-not-found error from hb-shape / hb-view

fixes #1266

6 years ago[fuzz] Add more new testcases
Ebrahim Byagowi [Thu, 18 Oct 2018 03:06:48 +0000 (06:36 +0330)]
[fuzz] Add more new testcases

6 years ago[fuzz] Add a new testcase
Ebrahim Byagowi [Thu, 18 Oct 2018 03:03:39 +0000 (06:33 +0330)]
[fuzz] Add a new testcase

6 years ago[trak] Fix calc
Behdad Esfahbod [Thu, 18 Oct 2018 00:55:47 +0000 (17:55 -0700)]
[trak] Fix calc

We were getting the first track record always.  Ie. this line:

       if (trackTable[i].get_track_value () == 0.f)
       {
-       trackTableEntry = &trackTable[0];
+       trackTableEntry = &trackTable[i];
        break;
       }

The rest is cleanup.

Fixes https://github.com/harfbuzz/harfbuzz/issues/1263 for the most part.

6 years ago[fuzzing] Move fuzzing fonts from api/ here
Behdad Esfahbod [Wed, 17 Oct 2018 22:04:35 +0000 (15:04 -0700)]
[fuzzing] Move fuzzing fonts from api/ here

6 years ago[buffer] Add an assert
Behdad Esfahbod [Wed, 17 Oct 2018 01:35:03 +0000 (18:35 -0700)]
[buffer] Add an assert

See if it helps debugging https://bugs.chromium.org/p/chromium/issues/detail?id=895117

6 years ago[fuzzing] Delete blink fuzzed data
Behdad Esfahbod [Wed, 17 Oct 2018 01:28:55 +0000 (18:28 -0700)]
[fuzzing] Delete blink fuzzed data

These are text, not font.

6 years ago[aat] Comment
Behdad Esfahbod [Wed, 17 Oct 2018 01:22:54 +0000 (18:22 -0700)]
[aat] Comment

6 years ago"allow-none" annotation for "out" parameters
HinTak [Tue, 16 Oct 2018 23:54:39 +0000 (00:54 +0100)]
"allow-none" annotation for "out" parameters

Fixes the following warnings:
hb-ot-tag.cc:330: Warning: HarfBuzz: invalid "allow-none" annotation: only valid for pointer types and out parameters
hb-ot-tag.cc:334: Warning: HarfBuzz: invalid "allow-none" annotation: only valid for pointer types and out parameters

6 years agoFix indent
Behdad Esfahbod [Wed, 17 Oct 2018 00:35:46 +0000 (17:35 -0700)]
Fix indent

6 years agotypo in gobject annotation - "in/out" should be "inout"
HinTak [Tue, 16 Oct 2018 23:36:04 +0000 (00:36 +0100)]
typo in gobject annotation - "in/out" should be "inout"

"in/out" should be "inout"

6 years ago[fuzzing] Run tests against fuzzing fonts
Behdad Esfahbod [Tue, 16 Oct 2018 23:39:29 +0000 (16:39 -0700)]
[fuzzing] Run tests against fuzzing fonts

Some disable.

6 years ago[fuzzing] Rename
Behdad Esfahbod [Tue, 16 Oct 2018 23:33:06 +0000 (16:33 -0700)]
[fuzzing] Rename

6 years ago[fuzzing] Move rest of fuzzing tests here
Behdad Esfahbod [Tue, 16 Oct 2018 23:32:26 +0000 (16:32 -0700)]
[fuzzing] Move rest of fuzzing tests here

6 years ago[fuzzing] Delete duplicate fonts
Behdad Esfahbod [Tue, 16 Oct 2018 23:30:38 +0000 (16:30 -0700)]
[fuzzing] Delete duplicate fonts

6 years agoMinor
Behdad Esfahbod [Tue, 16 Oct 2018 23:25:24 +0000 (16:25 -0700)]
Minor

6 years ago[gpos] Protect mark attachment against out-of-bounds
Behdad Esfahbod [Tue, 16 Oct 2018 23:24:03 +0000 (16:24 -0700)]
[gpos] Protect mark attachment against out-of-bounds

Not sure how can happen, but does...

6 years ago[fuzzing] Add more tests
Behdad Esfahbod [Tue, 16 Oct 2018 23:18:32 +0000 (16:18 -0700)]
[fuzzing] Add more tests

6 years ago[aat] Another non-null offset
Behdad Esfahbod [Tue, 16 Oct 2018 23:13:53 +0000 (16:13 -0700)]
[aat] Another non-null offset

6 years ago[aat] Make sure Lookup offset is never nulled
Behdad Esfahbod [Tue, 16 Oct 2018 22:40:44 +0000 (15:40 -0700)]
[aat] Make sure Lookup offset is never nulled

It has unbounded size...

Fixes https://oss-fuzz.com/v2/testcase-detail/5718889451749376

6 years agoFix tests
Behdad Esfahbod [Tue, 16 Oct 2018 22:26:51 +0000 (15:26 -0700)]
Fix tests

6 years ago[fuzzing] One more
Behdad Esfahbod [Tue, 16 Oct 2018 22:17:31 +0000 (15:17 -0700)]
[fuzzing] One more

6 years ago[fuzzing] Add more clusterfuzz tests I had lying around
Behdad Esfahbod [Tue, 16 Oct 2018 22:16:20 +0000 (15:16 -0700)]
[fuzzing] Add more clusterfuzz tests I had lying around

6 years agoAdd all the fonts found by fuzzers to the repo (#1258)
Ebrahim Byagowi [Tue, 16 Oct 2018 22:12:04 +0000 (01:42 +0330)]
Add all the fonts found by fuzzers to the repo (#1258)

6 years ago[morx] Reword ligation
Behdad Esfahbod [Tue, 16 Oct 2018 21:46:07 +0000 (14:46 -0700)]
[morx] Reword ligation

Still fails MORX-41.  Am talking to Sascha to better understand what CoreText
is doing.

6 years ago[morx] Comment
Behdad Esfahbod [Tue, 16 Oct 2018 20:57:35 +0000 (13:57 -0700)]
[morx] Comment

6 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Tue, 16 Oct 2018 20:39:54 +0000 (13:39 -0700)]
[test/text-rendering-tests] Update from upstream

6 years agoRevert "[vector] Simplify Sort" and "More of the same"
Behdad Esfahbod [Tue, 16 Oct 2018 20:32:52 +0000 (13:32 -0700)]
Revert "[vector] Simplify Sort" and "More of the same"

This reverts commit de0b9a466490c2c13d6ec6f59d5122b0a87d3180.
This reverts commit 921f0e6ec722940a1e37660e1291aa69f9f39db8.

Annnnd, revert.  MSVC doesn't like it.

6 years ago[kern] Scale kern pairs before applying
Behdad Esfahbod [Tue, 16 Oct 2018 20:24:29 +0000 (13:24 -0700)]
[kern] Scale kern pairs before applying

Fixes https://github.com/harfbuzz/harfbuzz/issues/1255
Fixes https://github.com/harfbuzz/harfbuzz/issues/1252

6 years ago[vector] More of the same
Behdad Esfahbod [Tue, 16 Oct 2018 05:20:26 +0000 (22:20 -0700)]
[vector] More of the same

6 years ago[vector] Simplify sort
Behdad Esfahbod [Tue, 16 Oct 2018 05:19:17 +0000 (22:19 -0700)]
[vector] Simplify sort

Hopefully this fits fine with SFINAE with all our compilers.

6 years ago[test] Minor cleanup in test-multithread and test-ot-name (#1256)
Ebrahim Byagowi [Tue, 16 Oct 2018 10:47:21 +0000 (14:17 +0330)]
[test] Minor cleanup in test-multithread and test-ot-name (#1256)

6 years ago[kerx] Minor, remove debug bit
Ebrahim Byagowi [Tue, 16 Oct 2018 07:28:09 +0000 (10:58 +0330)]
[kerx] Minor, remove debug bit

6 years ago[kerx] Fix Format6 sanitize
Behdad Esfahbod [Tue, 16 Oct 2018 04:16:58 +0000 (21:16 -0700)]
[kerx] Fix Format6 sanitize

Fixes https://oss-fuzz.com/v2/testcase-detail/5650286710882304

6 years ago[CBDT] Fix more offsetting
Behdad Esfahbod [Tue, 16 Oct 2018 02:46:45 +0000 (19:46 -0700)]
[CBDT] Fix more offsetting

Fixes https://oss-fuzz.com/v2/testcase-detail/5750379279548416

6 years ago[morx] Another end-of-text corner case
Behdad Esfahbod [Mon, 15 Oct 2018 18:15:54 +0000 (11:15 -0700)]
[morx] Another end-of-text corner case

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10990

6 years ago[kerx] Merge clusters in Ligature
Behdad Esfahbod [Mon, 15 Oct 2018 18:04:49 +0000 (11:04 -0700)]
[kerx] Merge clusters in Ligature

6 years ago[kerx/morx] More end-of-text protection
Behdad Esfahbod [Mon, 15 Oct 2018 17:20:39 +0000 (10:20 -0700)]
[kerx/morx] More end-of-text protection

6 years ago[dump-emoji] minor
Ebrahim Byagowi [Mon, 15 Oct 2018 08:46:47 +0000 (12:16 +0330)]
[dump-emoji] minor

6 years ago[dump-emoji] better explaination of the usage
Ebrahim Byagowi [Mon, 15 Oct 2018 08:34:14 +0000 (12:04 +0330)]
[dump-emoji] better explaination of the usage

6 years ago[ot-font] Implement TrueType v_origin
Behdad Esfahbod [Mon, 15 Oct 2018 08:09:05 +0000 (01:09 -0700)]
[ot-font] Implement TrueType v_origin

Fixes https://github.com/harfbuzz/harfbuzz/issues/537

6 years ago[blob] Fix UBSan error
Behdad Esfahbod [Mon, 15 Oct 2018 05:22:45 +0000 (22:22 -0700)]
[blob] Fix UBSan error

6 years ago[CBDT] Fix more offsetting issues
Behdad Esfahbod [Mon, 15 Oct 2018 04:32:09 +0000 (21:32 -0700)]
[CBDT] Fix more offsetting issues

Fixes https://github.com/harfbuzz/harfbuzz/issues/960

dump-emoji still segfaults.  Needs debugging.

6 years ago[CBDT] Fix offset handling
Behdad Esfahbod [Mon, 15 Oct 2018 04:08:42 +0000 (21:08 -0700)]
[CBDT] Fix offset handling

Fixes https://github.com/harfbuzz/harfbuzz/issues/960

6 years ago[CBDT] More UnsizedArrayOf cleanup
Behdad Esfahbod [Mon, 15 Oct 2018 03:49:21 +0000 (20:49 -0700)]
[CBDT] More UnsizedArrayOf cleanup

6 years ago[CBDT] Simplify sanitize
Behdad Esfahbod [Mon, 15 Oct 2018 03:37:57 +0000 (20:37 -0700)]
[CBDT] Simplify sanitize