diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-08-01 00:35:40 +0900 |
---|---|---|
committer | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2009-08-01 00:35:40 +0900 |
commit | 057bc4c071b2e4a611e86786551c473b70884434 (patch) | |
tree | df7b5243215f11af69e28cfdc6dbe6488147bc59 /src/smooth/ftsmooth.c | |
parent | b16a942671c80f0cbb2cdca96a4a583dabcdaf73 (diff) | |
download | freetype2-057bc4c071b2e4a611e86786551c473b70884434.tar.gz |
smooth: Exclude 16-bit system in invalid pitch/height check.
Diffstat (limited to 'src/smooth/ftsmooth.c')
-rw-r--r-- | src/smooth/ftsmooth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c index 3d3d30ab7..eed635315 100644 --- a/src/smooth/ftsmooth.c +++ b/src/smooth/ftsmooth.c @@ -196,6 +196,8 @@ #endif +#if FT_UINT_MAX > 0xFFFFU + /* Required check is ( pitch * height < FT_ULONG_MAX ), */ /* but we care realistic cases only. Always pitch <= width. */ if ( width > 0xFFFFU || height > 0xFFFFU ) @@ -205,6 +207,8 @@ return Smooth_Err_Raster_Overflow; } +#endif + bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; bitmap->num_grays = 256; bitmap->width = width; |