shithub: freetype+ttf2subf

Download patch

ref: a5818ed1e137b99e03eec2fb63f8a55dca0e624e
parent: 6b53300b01742cb68c116539d01f9aa967e26746
author: Werner Lemberg <[email protected]>
date: Thu Sep 13 04:46:44 EDT 2018

* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.

Reported as

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-09-13  Werner Lemberg  <[email protected]>
+
+	* src/sfnt/sfdriver.c (sfnt_get_var_ps_name): Check `result'.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10316
+
 2018-09-12  John Tytgat  <[email protected]>
 
 	[sfnt] Better PS name handling (#54629).
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -841,7 +841,7 @@
                                    sfnt_is_alphanumeric,
                                    0 );
 
-      len = ft_strlen( result );
+      len = result ? ft_strlen( result ) : 0;
 
       /* sanitize if necessary; we reserve space for 36 bytes (a 128bit  */
       /* checksum as a hex number, preceded by `-' and followed by three */