We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0c54d commit 74d177bCopy full SHA for 74d177b
ext/gd/gd.c
@@ -648,7 +648,7 @@ PHP_FUNCTION(imagesetstyle)
648
}
649
650
/* copy the style values in the stylearr */
651
- stylearr = safe_emalloc(num_styles, sizeof(int), 0);
+ stylearr = emalloc(num_styles * sizeof(int));
652
653
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(styles), item) {
654
stylearr[index++] = zval_get_long(item);
0 commit comments