php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37602 crash in COM_DOTNET when releasing typelib in php_com_typelibrary_dtor
Submitted: 2006-05-26 14:37 UTC Modified: 2006-08-25 12:04 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: olek at neurosoft dot pl Assigned: edink (profile)
Status: Closed Package: COM related
PHP Version: 5.1.4 OS: Windows
Private report: No CVE-ID: None
 [2006-05-26 14:37 UTC] 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);
 }



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-29 14:25 UTC] olek at neurosoft dot pl
I suppose this bug belongs to "COM related" category rather than "Reproducible crash". Sorry for my mistake.
 [2006-05-29 15:00 UTC] tony2001@php.net
Edin, the patch looks good, but I don't think I can test in on Linux.
Check it out, please.
 [2006-08-25 12:04 UTC] edink@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC