* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove

unrequired negative value check for `width' and `height'.
This commit is contained in:
suzuki toshiya 2014-11-28 00:58:25 +09:00
parent dd3fee072c
commit 2676e07aa4
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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 ));