php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 0001_fix-format-security.patch for mysqlnd_ms Bug #65408

Patch version 2013-08-07 08:02 UTC

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

Developer: ondrej@php.net

--- php-mysqlnd-ms.orig/mysqlnd_ms-1.5.2/mysqlnd_ms_config_json.c
+++ php-mysqlnd-ms/mysqlnd_ms-1.5.2/mysqlnd_ms_config_json.c
@@ -248,7 +248,7 @@ mysqlnd_ms_config_json_load_configuratio
 				mnd_sprintf(&(MYSQLND_MS_G(config_startup_error)), 0, MYSQLND_MS_ERROR_PREFIX
 								" Failed to open server list config file [%s]", json_file_name);
 				/* The only one to bark in RINIT as otherwise no specific warning/error appears */
-				php_error_docref(NULL TSRMLS_CC, E_WARNING, MYSQLND_MS_G(config_startup_error));
+				php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", MYSQLND_MS_G(config_startup_error));
 				break;
 			}
 			str_data_len = php_stream_copy_to_mem(stream, &str_data, PHP_STREAM_COPY_ALL, 0);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 15:01:30 2024 UTC