Commit 2676e07aa45761d00ff0cb0101bf0aeb0d95ad05

suzuki toshiya 2014-11-28T00:58:25

* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove unrequired negative value check for `width' and `height'.

diff --git a/ChangeLog b/ChangeLog
index fb3436f..a96b937 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-27  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
+	unrequired negative value check for `width' and `height'.
+
 2014-11-27  Werner Lemberg  <wl@gnu.org>
 
 	* src/tools/docmaker/tohtml.py: More HTML table refactoring.
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c
index de2e01d..4e2dee5 100644
--- a/src/smooth/ftsmooth.c
+++ b/src/smooth/ftsmooth.c
@@ -214,8 +214,7 @@
 
     /* Required check is (pitch * height < FT_ULONG_MAX),        */
     /* but we care realistic cases only.  Always pitch <= width. */
-    if ( width  < 0 || width  > 0x7FFF ||
-         height < 0 || height > 0x7FFF )
+    if ( width > 0x7FFF || height > 0x7FFF )
     {
       FT_ERROR(( "ft_smooth_render_generic: glyph too large: %u x %u\n",
                  width, height ));