diff options
author | Andrey Hristov <andrey@php.net> | 2005-04-10 21:37:17 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2005-04-10 21:37:17 +0000 |
commit | d9f5f1ee08d1107b5cf0026030b25d2d67c917b7 (patch) | |
tree | c179705fa09986283940569427e1d8a1c23c14e1 /ext/gd | |
parent | 628b8cae7d52c4b4ae2604225788fe4e07a7d541 (diff) | |
download | php-git-d9f5f1ee08d1107b5cf0026030b25d2d67c917b7.tar.gz |
fix memory corruption on 64bit in imagefttext(),
domdocument::load() and domdocument::loadxml()
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 22879ae6fb..135c2dcc6a 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3105,7 +3105,8 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int { zval *IM, *EXT = NULL; gdImagePtr im=NULL; - int col = -1, x = -1, y = -1, str_len, fontname_len, i, brect[8]; + long col = -1, x = -1, y = -1; + int str_len, fontname_len, i, brect[8]; double ptsize, angle; unsigned char *str = NULL, *fontname = NULL; char *error = NULL; |