shithub: freetype+ttf2subf

Download patch

ref: 04c2aa18bf05dbedc88212caa7eb93fb0839bdd3
parent: 04edbbda3cdf2ac0c7b90203ea87549e6f90753b
author: Werner Lemberg <[email protected]>
date: Tue Nov 25 05:22:12 EST 2014

*/*: s/Invalid_Argument/Invalid_Outline/ where appropriate.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-11-25  Werner Lemberg  <[email protected]>
 
+	*/*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
+
+2014-11-25  Werner Lemberg  <[email protected]>
+
 	*/*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
 
 2014-11-24  Werner Lemberg  <[email protected]>
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -73,7 +73,10 @@
     FT_Pos   delta;
 
 
-    if ( !outline || !func_interface )
+    if ( !outline )
+      return FT_THROW( Invalid_Outline );
+
+    if ( !func_interface )
       return FT_THROW( Invalid_Argument );
 
     shift = func_interface->shift;
@@ -614,7 +617,10 @@
     if ( !library )
       return FT_THROW( Invalid_Library_Handle );
 
-    if ( !outline || !params )
+    if ( !outline )
+      return FT_THROW( Invalid_Outline );
+
+    if ( !params )
       return FT_THROW( Invalid_Argument );
 
     renderer = library->cur_renderer;
@@ -911,7 +917,7 @@
 
 
     if ( !outline )
-      return FT_THROW( Invalid_Argument );
+      return FT_THROW( Invalid_Outline );
 
     xstrength /= 2;
     ystrength /= 2;
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -2060,7 +2060,10 @@
     FT_Int      tag;       /* current point's state           */
 
 
-    if ( !outline || !stroker )
+    if ( !outline )
+      return FT_THROW( Invalid_Outline );
+
+    if ( !stroker )
       return FT_THROW( Invalid_Argument );
 
     FT_Stroker_Rewind( stroker );
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1515,7 +1515,10 @@
     TPos  delta;
 
 
-    if ( !outline || !func_interface )
+    if ( !outline )
+      return FT_THROW( Invalid_Outline );
+
+    if ( !func_interface )
       return FT_THROW( Invalid_Argument );
 
     shift = func_interface->shift;