[php-src] PR #17659: Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault

From: Date: Fri, 31 Jan 2025 20:34:41 +0000
Subject: [php-src] PR #17659: Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30615@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17659 Author: cmb69 The actual fix is trivial, but to be able to test the behavior we have to introduce an own COM object, since existing persistable objects likely implement IPersistInit, not only IPersist. We also want to avoid further test dependencies on possibly unavailable objects, such as Word.Application. To this purposes, we add a small COM in-process server, which may be extended for other testing purposes. We keep it simple by implementing it in C++, but without using any more sophisticated frameworks like ATL. This component needs to be built explicitly (nmake comtest.dll), and also needs to be explicitly registered (nmake register_comtest). When no longer needed, it is possible to unregister the component (nmake unregister_comtest).

« previous php.git-pulls (#30615) next »