[HarfBuzz] harfbuzz: Branch 'master' - 2 commits

2016-02-19 Thread Behdad Esfahbod
 src/hb-buffer.cc |2 ++
 src/hb-ot-layout-gsubgpos-private.hh |2 +-
 test/fuzzing/Makefile.am |3 +++
 3 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit b87e36f6f119fac80b8fd55f3abae563c2c5b798
Author: Behdad Esfahbod 
Date:   Fri Feb 19 14:52:31 2016 +0700

Avoid buffer->move_to() in case of buffer error

Fixes https://github.com/behdad/harfbuzz/issues/223

Right now we cannot test this because it has to be tested using hb-fuzzer.
We should move all fuzzing tests from test/shaping/tests/fuzzed.tests to
test/fuzzing/ and have its own test runner.  At that point, should add
test from this issue as well.

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index c731ed1..5f320bd 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -407,6 +407,8 @@ hb_buffer_t::move_to (unsigned int i)
 idx = i;
 return true;
   }
+  if (unlikely (in_error))
+return false;
 
   assert (i <= out_len + (len - idx));
 
diff --git a/src/hb-ot-layout-gsubgpos-private.hh 
b/src/hb-ot-layout-gsubgpos-private.hh
index d6db005..3f9d9ca 100644
--- a/src/hb-ot-layout-gsubgpos-private.hh
+++ b/src/hb-ot-layout-gsubgpos-private.hh
@@ -971,7 +971,7 @@ static inline bool apply_lookup (hb_apply_context_t *c,
   match_positions[j] += delta;
   }
 
-  for (unsigned int i = 0; i < lookupCount; i++)
+  for (unsigned int i = 0; i < lookupCount && !buffer->in_error; i++)
   {
 unsigned int idx = lookupRecord[i].sequenceIndex;
 if (idx >= count)
commit 7e76bbabbaa56af314abff8ddba8866c634919cd
Author: Behdad Esfahbod 
Date:   Fri Feb 19 14:43:39 2016 +0700

[fuzzing] Make "make hb-fuzzer" build lib dependency

Not going to do with util/, but is convenient here.

diff --git a/test/fuzzing/Makefile.am b/test/fuzzing/Makefile.am
index 2b2693f..a726690 100644
--- a/test/fuzzing/Makefile.am
+++ b/test/fuzzing/Makefile.am
@@ -39,6 +39,9 @@ hb_fuzzer_CPPFLAGS = \
$(AM_CPPFLAGS) \
-DMAIN \
$(NULL)
+hb_fuzzer_DEPENDENCIES = \
+   lib \
+   $(NULL)
 
 check:
cat $(top_srcdir)/test/shaping/tests/fuzzed.tests | \
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/harfbuzz


[HarfBuzz] harfbuzz: Branch 'master' - 4 commits

2016-02-19 Thread Behdad Esfahbod
 NEWS|   20 
++
 configure.ac|2 
-
 test/fuzzing/Makefile.am|6 
++-
 test/fuzzing/hb-fuzzer.cc   |1 
 test/shaping/fonts/sha1sum/205edd09bd3d141cc9580f650109556cc28b22cb.ttf |binary
 test/shaping/fonts/sha1sum/MANIFEST |1 
 test/shaping/tests/fuzzed.tests |1 
 7 files changed, 28 insertions(+), 3 deletions(-)

New commits:
commit 27847cab1264b4ce8342603f4626b4e0645979e4
Author: Behdad Esfahbod 
Date:   Fri Feb 19 15:56:50 2016 +0700

1.2.0

diff --git a/NEWS b/NEWS
index 698256d..d8daee7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,23 @@
+Overview of changes leading to 1.2.0
+Friday, February 19, 2016
+
+
+- Fix various issues (hangs mostly) in case of memory allocation failure.
+- Change mark zeroing types of most shapers from BY_UNICODE_LATE to
+  BY_GDEF_LATE.  This seems to be what Uniscribe does.
+- Change mark zeroing of USE shaper from NONE to BY_GDEF_EARLY.  That's
+  what Windows does.
+- Allow GPOS cursive connection on marks, and fix the interaction with
+  mark attachment.  This work resulted in some changes to how mark
+  attachments work.  See:
+  https://github.com/behdad/harfbuzz/issues/211
+  
https://github.com/behdad/harfbuzz/commit/86c68c7a2c971efe8e35b1f1bd99401dc8b688d2
+- Graphite2 shaper: improved negative advance handling (eg. Nastaliq).
+- Add nmake-based build system for Windows.
+- Minor speedup.
+- Misc. improvements.
+
+
 Overview of changes leading to 1.1.3
 Monday, January 11, 2016
 
diff --git a/configure.ac b/configure.ac
index f76b4fc..d4c8f95 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 AC_PREREQ([2.64])
 AC_INIT([HarfBuzz],
-[1.1.3],
+[1.2.0],
 [http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz],
 [harfbuzz],
 [http://harfbuzz.org/])
commit c3731559042e1730e85d19574321ad850010f7de
Author: Behdad Esfahbod 
Date:   Fri Feb 19 15:13:07 2016 +0700

[fuzzing] Add test for recent fix

Test from https://github.com/behdad/harfbuzz/issues/223

I forgot that we do run hb-fuzzer on tests in shaping/tests/fuzzed.tests.

diff --git 
a/test/shaping/fonts/sha1sum/205edd09bd3d141cc9580f650109556cc28b22cb.ttf 
b/test/shaping/fonts/sha1sum/205edd09bd3d141cc9580f650109556cc28b22cb.ttf
new file mode 100644
index 000..4e0ce0a
Binary files /dev/null and 
b/test/shaping/fonts/sha1sum/205edd09bd3d141cc9580f650109556cc28b22cb.ttf differ
diff --git a/test/shaping/fonts/sha1sum/MANIFEST 
b/test/shaping/fonts/sha1sum/MANIFEST
index c24bf79..afbff68 100644
--- a/test/shaping/fonts/sha1sum/MANIFEST
+++ b/test/shaping/fonts/sha1sum/MANIFEST
@@ -5,6 +5,7 @@
 1c04a16f32a39c26c851b7fc014d2e8d298ba2b8.ttf
 1c2c3fc37b2d4c3cb2ef726c6cdaaabd4b7f3eb9.ttf
 1c2fb74c1b2aa173262734c1f616148f1648cfd6.ttf
+205edd09bd3d141cc9580f650109556cc28b22cb.ttf
 226bc2deab3846f1a682085f70c67d0421014144.ttf
 270b89df543a7e48e206a2d830c0e10e5265c630.ttf
 298c9e1d955f10f6f72c6915c3c6ff9bf9695cec.ttf
diff --git a/test/shaping/tests/fuzzed.tests b/test/shaping/tests/fuzzed.tests
index 6d4aa00..7a5d395 100644
--- a/test/shaping/tests/fuzzed.tests
+++ b/test/shaping/tests/fuzzed.tests
@@ -8,3 +8,4 @@ 
fonts/sha1sum/b9e2aaa0d75fcef6971ec3a96d806ba4a6b31fe2.ttf:--font-funcs=ot:U+004
 
fonts/sha1sum/43979b90b2dd929723cf4fe1715990bcb9c9a56b.ttf:--font-funcs=ot:U+0041:[gid0=0+1000]
 
fonts/sha1sum/3511ff5c1647150595846ac414c595cccac34f18.ttf:--font-funcs=ot:U+0041:[gid0=0+1000|gid512=0+1000|gid15104=0+1000|gid11004=0+1000|gid3408=0+1000|gid18244=0+1000|gid17872=0+1000|gid17961=0+1000|gid0=0+1000|gid992=0+1000|gid15616=0+1000|gid0=0+1000|gid14151=0+1000|gid20559=0+1000|gid20992=0+1000|gid5440=0+1000|gid256=0+1000|gid0=0+1000|gid10=0+1000|gid8960=0+1000|gid256=0+1000|gid1024=0+1000|gid1490=0+1000|gid0=0+1000|gid768=0+1000|gid4096=0+1000|gid256=0+1000|gid2216=0+1000|gid0=0+1000|gid256=0+1000|gid256=0+1000|gid0=0+1000|gid768=0+1000|gid10752=0+1000|gid11004=0+1000|gid3408=0+1000|gid18244=0+1000|gid17734=0+1000|gid53248=0+1000|gid256=0+1000|gid0=0+1000|gid512=0+1000|gid14848=0+1000|gid10793=0+1000|gid57344=0+1000|gid768=0+1000|gid18227=0+1000|gid20285=0+1000|gid20480=0+1000|gid0=0+1000|gid256=0+1000|gid0=0+1000|gid810=0+1000|gid0=0+1000|gid11004=0+1000|gid3408=0+1000|gid18244=0+1000|gid17734=0+1000|gid53289=0+1000|gid57344=0+1000|gid768=0+1000|gid15667=0+1000|gid71=0+
 
1000|gid0=0+1000|gid20559=0+1000|gid21248=0+1000|gid256=0+1000|gid0=0+1000|gid2816=0+1000|gid2776=0+1000|gid0=0+1000|gid51516=0+1000|gid0=0+1000|gid32=0+1000|gid26209=0+1000|gid28005=0+1000|gid65249=0+1000|gid29690=0+1000|gid0=0+1000|gid51548=0+1000|gid0=0+1000|gid2454=0+1000|gid28783=0+1000|gid29556=

[HarfBuzz] harfbuzz: Changes to 'refs/tags/1.2.0'

2016-02-19 Thread Behdad Esfahbod
Tag '1.2.0' created by Behdad Esfahbod  at 2016-02-19 08:56 
-0800

1.2.0
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEABECAAYFAlbG2NkACgkQn+4E5dNTERX/7gCgnIFI1Oe5H+HrjFWrePcEXkdQ
2DsAmQHg5pf0Xd8q5txMlSkEFDUNKXWC
=RoOg
-END PGP SIGNATURE-

Changes since 1.1.3-44:
---
 0 files changed
---
___
HarfBuzz mailing list
HarfBuzz@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/harfbuzz