php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75867
Patch php_iconv_string-out-pointer-initialize revision 2018-01-24 03:15 UTC by philipp at redfish-solutions dot com
Patch fix-initialization.patch revision 2018-01-24 02:51 UTC by mike at flyn dot org

Patch fix-initialization.patch for ICONV related Bug #75867

Patch version 2018-01-24 02:51 UTC

Return to Bug #75867 | Download this patch
Patch Revisions:

Developer: mike@flyn.org

diff -u --recursive php-7.2.1-vanilla/ext/iconv/iconv.c php-7.2.1/ext/iconv/iconv.c
--- php-7.2.1-vanilla/ext/iconv/iconv.c	2018-01-23 21:30:38.134438464 -0500
+++ php-7.2.1/ext/iconv/iconv.c	2018-01-23 21:30:59.189475945 -0500
@@ -2447,7 +2447,7 @@
 	zend_string *in_buffer;
 	size_t in_charset_len = 0, out_charset_len = 0;
 	php_iconv_err_t err;
-	zend_string *out_buffer;
+	zend_string *out_buffer = NULL;
 
 	if (zend_parse_parameters(ZEND_NUM_ARGS(), "ssS",
 		&in_charset, &in_charset_len, &out_charset, &out_charset_len, &in_buffer) == FAILURE)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC