]> granicus.if.org Git - php/commit
Fix #77177: Serializing or unserializing COM objects crashes
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 23 Nov 2018 15:32:33 +0000 (16:32 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 23 Nov 2018 15:32:33 +0000 (16:32 +0100)
commit115ee49b0be12e3df7d2c7027609fbe1a1297e42
tree6351c4b6b9c5e09c8a699613237afae1fa908975
parentf2de4d185d9c4a2bb8d7e0a617c5a91496ea1ed9
Fix #77177: Serializing or unserializing COM objects crashes

Firstly, we avoid returning NULL from the get_property handler, but
instead return an empty HashTable, which already prevents the crashes.
Secondly, since (de-)serialization obviously makes no sense for COM,
DOTNET and VARIANT objects (at least with the current implementation),
we prohibit it right away.
NEWS
ext/com_dotnet/com_extension.c
ext/com_dotnet/com_handlers.c
ext/com_dotnet/php_com_dotnet_internal.h
ext/com_dotnet/tests/bug77177.phpt [new file with mode: 0644]