#37602 [Asn->Csd]: crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtor
| From: | edink@php.net | Date: | Fri, 25 Aug 2006 12:04:47 +0000 |
| Subject: | #37602 [Asn->Csd]: 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-101326@lists.php.net to get a copy of this message | ||
ID: 37602
Updated by: edink@php.net
Reported By: olek at neurosoft dot pl
-Status: Assigned
+Status: Closed
Bug Type: COM related
Operating System: Windows
PHP Version: 5.1.4
Assigned To: edink
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-05-29 15:00:51] tony2001@php.net
Edin, the patch looks good, but I don't think I can test in on Linux.
Check it out, please.
------------------------------------------------------------------------
[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