aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/base/ftbitmap.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-11-18 15:29:09 +0100
committermarha <marha@users.sourceforge.net>2011-11-18 15:29:09 +0100
commit1037d56ca89d503cfd62830a90e934a2806ad804 (patch)
tree9a72a42de4a86af33a93a8829e387476694c314a /freetype/src/base/ftbitmap.c
parent1d325f411302fb329f0045f1288fc7cba03b17ce (diff)
downloadvcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.tar.gz
vcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.tar.bz2
vcxsrv-1037d56ca89d503cfd62830a90e934a2806ad804.zip
freetype 2.4.8
Diffstat (limited to 'freetype/src/base/ftbitmap.c')
-rw-r--r--freetype/src/base/ftbitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freetype/src/base/ftbitmap.c b/freetype/src/base/ftbitmap.c
index 5ef7ac760..15c9d6559 100644
--- a/freetype/src/base/ftbitmap.c
+++ b/freetype/src/base/ftbitmap.c
@@ -417,8 +417,8 @@
target->pitch = source->width + pad;
- if ( target->pitch > 0 &&
- target->rows > FT_ULONG_MAX / target->pitch )
+ if ( target->pitch > 0 &&
+ (FT_ULong)target->rows > FT_ULONG_MAX / target->pitch )
return FT_Err_Invalid_Argument;
if ( target->rows * target->pitch > old_size &&