#37602 [Opn->Asn]: crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtor
| From: | tony2001@php.net | Date: | Mon, 29 May 2006 15:00:51 +0000 |
| Subject: | #37602 [Opn->Asn]: crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtor | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97751@lists.php.net to get a copy of this message | ||
ID: 37602
Updated by: tony2001@php.net
Reported By: olek at neurosoft dot pl
-Status: Open
+Status: Assigned
Bug Type: COM related
Operating System: Windows
PHP Version: 5.1.4
-Assigned To:
+Assigned To: edink
New Comment:
Edin, the patch looks good, but I don't think I can test in on Linux.
Check it out, please.
Previous Comments:
------------------------------------------------------------------------
[2006-05-29 14:25:02] olek at neurosoft dot pl
I suppose this bug belongs to "COM related" category rather than
"Reproducible crash". Sorry for my mistake.
------------------------------------------------------------------------
[2006-05-26 14:37:23] olek at neurosoft dot pl
Description:
------------
Crash caused by bug in function: php_com_typelibrary_dtor in module:
ext/com_dotnet/com_typeinfo.c
Patch is following:
--- php-5.1.4/ext/com_dotnet/com_typeinfo.c 2006-01-01
12:50:00.000000000 +0100
+++ php_build/php-5.1.4/ext/com_dotnet/com_typeinfo.c 2006-05-26
15:57:02.000000000 +0200
@@ -220,7 +220,7 @@
/* Type-library stuff */
void php_com_typelibrary_dtor(void *pDest)
{
- ITypeLib *Lib = *(ITypeLib**)pDest;
+ ITypeLib *Lib = (ITypeLib*)pDest;
ITypeLib_Release(Lib);
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37602&edit=1