ref: 2676e07aa45761d00ff0cb0101bf0aeb0d95ad05
parent: dd3fee072c05414cfbc5ad30353ff092393a6e94
author: suzuki toshiya <[email protected]>
date: Thu Nov 27 19:58:25 EST 2014
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove unrequired negative value check for `width' and `height'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-27 suzuki toshiya <[email protected]>
+
+ * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
+ unrequired negative value check for `width' and `height'.
+
2014-11-27 Werner Lemberg <[email protected]>
* src/tools/docmaker/tohtml.py: More HTML table refactoring.
--- 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 ));