https://bugs.freedesktop.org/show_bug.cgi?id=71043
--- Comment #14 from Stephan Bergmann <sbergman@redhat.com> ---
From attachment 88771:
bug: anti-simplify
model: |
%68 = icmp eq %"class.configmgr::configuration_registry::<anonymous namespace>::RegistryKey"*
%2, null, !dbg !5935
--> false
stack:
- /home/vanz/git/mylibo/configmgr/source/configurationregistry.cxx:398:0
ncore: 1
core:
-
/home/vanz/git/mylibo/workdir/unxlngx6.pro/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XInterface.hdl:18:0
- null pointer dereference
For me, configmgr/source/configurationregistry.cxx:398 is
return new RegistryKey(*this, css::uno::makeAny(access_));
and
workdir/unxlngx6.pro/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XInterface.hdl:18
is
class SAL_NO_VTABLE XInterface
Are they any different for you?
I'm not exactly sure what code this report is supposed to be about. It might
be about the if statement in the implicit call to inline
template< class interface_type >
inline Reference< interface_type >::Reference( interface_type * pInterface ) SAL_THROW(())
{
_pInterface = castToXInterface(pInterface);
if (_pInterface)
_pInterface->acquire();
}
which is redundant in this particular case where pInterace is non-null "new
RegistryKey(...)" and castToXInterface is an inline function that transfers
non-null pointer to non-null pointer. But that would mean that STACK is
unhelpfully too eager in reporting findings in inlined codes.
--
You are receiving this mail because:
You are on the CC list for the bug.
Context
- [Bug 71043] Use STACK lint tool to clean code ... (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.