From 1d51c0f7d697980e82b31eae4d170be0cbe1a9fc Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 27 Oct 2009 19:16:55 +0000 Subject: [PATCH] - Fixed crash in com_print_typeinfo when an invalid typelib is given --- NEWS | 2 ++ ext/com_dotnet/com_typeinfo.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 173416f063..85f2a23707 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS - Introduced a max_file_uploads INI setting, which is set to limit the number of file uploads per-request to 100 by default, to prevent possible DOS via temporary file exhaustion. (Ilia) + +- Fixed crash in com_print_typeinfo when an invalid typelib is given - Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak. (Rasmus) - Fixed a open_basedir bypass in posix_mkfifo() identified by Grzegorz diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c index 90a21860ca..772f1f30a0 100644 --- a/ext/com_dotnet/com_typeinfo.c +++ b/ext/com_dotnet/com_typeinfo.c @@ -309,7 +309,7 @@ ITypeInfo *php_com_locate_typeinfo(char *typelibname, php_com_dotnet_object *obj } } else if (typelibname) { /* Fetch the typelibrary and use that to look things up */ - typelib = php_com_load_typelib(typelibname, obj->code_page TSRMLS_CC); + typelib = php_com_load_typelib(typelibname, CP_THREAD_ACP TSRMLS_CC); } if (!gotguid && dispname && typelib) { -- 2.50.1