Apache OpenOffice (AOO) Bugzilla – Issue 127895
Possible access to unintended variable in "openoffice/main/sfx2/source/doc/sfxbasemodel.cxx" line 940
Last modified: 2023-04-23 10:49:20 UTC
While experimenting with a CodeSonar plugin we develop, we noticed a potential issue in file "openoffice/main/sfx2/source/doc/sfxbasemodel.cxx" line 940 function SfxBaseModel::disposing: else if ( xDocListener.is() ) m_pData->m_aInterfaceContainer.removeInterface( ::getCppuType((const uno::Reference< XDOCEVENTLISTENER >*)0), xListener ); //HERE Shouldn't xDocListener be used instead of xListener? Thanks, Petru-Florin Mihancea
Now, you can propose a patch through Github: https://github.com/apache/openoffice/
patched in b82be50 https://github.com/apache/openoffice/commit/b82be50fa0f1a4e9f27bc8d6c5da1904c31a998f
Cherry-picked for AOO41X with: https://github.com/apache/openoffice/commit/e4c033a6c67754b39675d5af31808c4bb3a33173