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);
|