shithub: freetype+ttf2subf

Download patch

ref: 04ebb2a000ee40df2a9900198ec62d79af745b1f
parent: 99f23d6ff2203966d210bccd49eacc62a20328f9
author: Werner Lemberg <[email protected]>
date: Tue Sep 17 15:46:59 EDT 2019

* src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.

Problem reported by Marc Schönefeld <[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2019-09-17  Werner Lemberg  <[email protected]>
 
+	* src/otvalid/otvcommon.c (otv_Coverage_get_last): Guard `count'.
+
+	Problem reported by Marc Schönefeld <[email protected]>.
+
+2019-09-17  Werner Lemberg  <[email protected]>
+
 	* src/sfnt/sfwoff2.c (woff2_open_font): Check table index.
 
 	Reported as
--- a/src/otvalid/otvcommn.c
+++ b/src/otvalid/otvcommn.c
@@ -151,6 +151,9 @@
     FT_UInt   result = 0;
 
 
+    if ( !count )
+      return result;
+
     switch ( CoverageFormat )
     {
     case 1: