diff options
author | Stanislav Malyshev <stas@php.net> | 2016-11-03 20:36:52 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-11-03 21:35:09 -0700 |
commit | 1fd18821e08c72e026de30ab915b73ec32dcf0ad (patch) | |
tree | 426eede78acd600eab037f1fd71477e876c86c11 /ext/imap | |
parent | ccb91cde94ded41ff8c8a6fbe6bfa8b0ad4ee009 (diff) | |
download | php-git-1fd18821e08c72e026de30ab915b73ec32dcf0ad.tar.gz |
More string length checks & fixes
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 564473b738..8e70163bc6 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3916,7 +3916,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char * #define PHP_IMAP_CLEAN if (bufferTo) efree(bufferTo); if (bufferCc) efree(bufferCc); if (bufferBcc) efree(bufferBcc); if (bufferHeader) efree(bufferHeader); #define PHP_IMAP_BAD_DEST PHP_IMAP_CLEAN; efree(tempMailTo); return (BAD_MSG_DESTINATION); - bufferHeader = (char *)emalloc(bufferLen + 1); + bufferHeader = (char *)safe_emalloc(bufferLen, 1, 1); memset(bufferHeader, 0, bufferLen); if (to && *to) { strlcat(bufferHeader, "To: ", bufferLen + 1); |