From c403b3029123aefe0919058b100e80c6bc4e1a6d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 13 Sep 2016 11:50:18 +0200 Subject: pick up the safe alloc pieces from 19866fb76cf4c95d904ebb0e08592cf38303fae9 --- ext/imap/php_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 5cfc8adf14..566392fbfd 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2977,7 +2977,7 @@ PHP_FUNCTION(imap_utf7_encode) } /* allocate output buffer */ - out = zend_string_alloc(outlen, 0); + out = zend_string_safe_alloc(1, outlen, 0, 0); /* encode input string */ outp = (unsigned char*)ZSTR_VAL(out); -- cgit v1.2.1