New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Jan 20 01:17:34 PST 2016


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
14 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1349702:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontattributes.cxx: 74 in FontAttributes::FontAttributes()()


________________________________________________________________________________________________________
*** CID 1349702:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontattributes.cxx: 74 in FontAttributes::FontAttributes()()
68         mbSymbolFlag( false ),
69         mnQuality( 0 ),
70         mbOrientation( false ),
71         mbDevice( false ),
72         mbSubsettable( false ),
73         mbEmbeddable ( false )
>>>     CID 1349702:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "meFamily" is not initialized in this constructor nor in any functions that it calls.
74     {}
75     
76     
77     bool FontAttributes::CompareDeviceIndependentFontAttributes(const FontAttributes& rOther) const
78     {
79         if (maFamilyName != rOther.maFamilyName)

** CID 1349701:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/unocore/unostyle.cxx: 1701 in SwXStyle::SetPropertyValue<(unsigned short)22300>(const SfxItemPropertySimpleEntry &, const SfxItemPropertySet &, const com::sun::star::uno::Any &, SwStyleBase_Impl &)()


________________________________________________________________________________________________________
*** CID 1349701:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/unocore/unostyle.cxx: 1701 in SwXStyle::SetPropertyValue<(unsigned short)22300>(const SfxItemPropertySimpleEntry &, const SfxItemPropertySet &, const com::sun::star::uno::Any &, SwStyleBase_Impl &)()
1695             const auto nIdx(GetCommandContextIndex(rNamedValue.Name));
1696             if(nIdx == -1)
1697                 throw lang::IllegalArgumentException();
1698             m_pBasePool->SetSearchMask(SFX_STYLE_FAMILY_PARA);
1699             for(auto pBase = m_pBasePool->First(); pBase->GetName() != aStyleName; pBase = m_pBasePool->Next())
1700             {
>>>     CID 1349701:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pBase" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1701                 if(!pBase)
1702                     throw lang::IllegalArgumentException();
1703             }
1704             aCondItem.SetStyle(&aStyleName, nIdx);
1705         }
1706         o_rStyleBase.GetItemSet().Put(aCondItem);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939



More information about the LibreOffice mailing list