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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: olek at neurosoft dot pl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Dec 27 19:01:28 2024 UTC