From 2676e07aa45761d00ff0cb0101bf0aeb0d95ad05 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Fri, 28 Nov 2014 00:58:25 +0900 Subject: [PATCH] * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove unrequired negative value check for `width' and `height'. --- ChangeLog | 5 +++++ src/smooth/ftsmooth.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fb3436f18..a96b9373f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-27 suzuki toshiya + + * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove + unrequired negative value check for `width' and `height'. + 2014-11-27 Werner Lemberg * src/tools/docmaker/tohtml.py: More HTML table refactoring. diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c index de2e01d08..4e2dee562 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 ));