diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-06-19 15:47:46 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-06-19 15:47:46 +0000 |
commit | aeadf9bd4aca964ace24eadd97821e3ed5776db0 (patch) | |
tree | e60a7217eed811cf1acd409fe9afdf45c17fb6fa /ext/gd/gd.c | |
parent | e52b96a29632eb2b13ded11bde6e4cc41c91500d (diff) | |
download | php-git-aeadf9bd4aca964ace24eadd97821e3ed5776db0.tar.gz |
Fixed a crash inside php_imagettftext_common();
Diffstat (limited to 'ext/gd/gd.c')
-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 e2ea2c483a..51b0d03044 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3107,8 +3107,9 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int do { zval ** item; char * key; + ulong num_key; - if (zend_hash_get_current_key_ex(HASH_OF(*EXT), &key, NULL, NULL, 0, &pos) == FAILURE) { + if (zend_hash_get_current_key_ex(HASH_OF(*EXT), &key, NULL, &num_key, 0, &pos) != HASH_KEY_IS_STRING) { continue; } |