Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index



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.
8 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 1426946:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/table/swtable.cxx: 2235 in SwTableBoxFormat::Modify(const SfxPoolItem *, const 
SfxPoolItem *)()


________________________________________________________________________________________________________
*** CID 1426946:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/table/swtable.cxx: 2235 in SwTableBoxFormat::Modify(const SfxPoolItem *, const 
SfxPoolItem *)()
2229                             if( SfxItemState::SET != GetItemState( RES_BOXATR_VALUE, false ))
2230                                 pNewFormat = nullptr;
2231                         }
2232                         else
2233                         {
2234                             // fetch the current Item
    CID 1426946:  Error handling issues  (CHECKED_RETURN)
    Calling "GetItemState" without checking return value (as is done elsewhere 71 out of 73 
times).
2235                             GetItemState( RES_BOXATR_FORMAT, false,
2236                                                 reinterpret_cast<const 
SfxPoolItem**>(&pNewFormat) );
2237                             nOldFormat = GetTableBoxNumFormat().GetValue();
2238                             nNewFormat = pNewFormat ? pNewFormat->GetValue() : nOldFormat;
2239                         }
2240     

** CID 1426945:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/doc/docfmt.cxx: 1030 in lcl_SetTextFormatColl(SwNode *const &, void *)()


________________________________________________________________________________________________________
*** CID 1426945:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/doc/docfmt.cxx: 1030 in lcl_SetTextFormatColl(SwNode *const &, void *)()
1024             if ( pPara->bResetListAttrs &&
1025                  pFormat != pCNd->GetFormatColl() &&
1026                  pFormat->GetItemState( RES_PARATR_NUMRULE ) == SfxItemState::SET )
1027             {
1028                 // Check, if the list style of the paragraph will change.
1029                 bool bChangeOfListStyleAtParagraph( true );
    CID 1426945:  Null pointer dereferences  (FORWARD_NULL)
    Assigning: "pTNd" = "dynamic_cast <SwTextNode *>(pCNd)".
1030                 SwTextNode* pTNd( dynamic_cast<SwTextNode*>(pCNd) );
1031                 OSL_ENSURE( pTNd, "<lcl_SetTextFormatColl(..)> - text node expected -> crash" 
);
1032                 {
1033                     SwNumRule* pNumRuleAtParagraph( pTNd->GetNumRule() );
1034                     if ( pNumRuleAtParagraph )
1035                     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy4UTlAndyjnp2ewsrCt-2BFF-2BAXtMKHu5y-2BbinOMjmUxpzPtjBN0EOez-2F-2BSqIJ3Lp0OavZ5MZAZC8l38PR3H75p-2FQRmqqn-2BSHw1myAo7XeslQqiPZzvLtoP54Pira4ljZEekV8cxSfxgkWksR-2BqrO3qw4zDWcKPm6ZheOLUJ1pQydQ-3D

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5lwWgMDuK-2FivqaohkU3M9kT-2Fww10Qt2GoaCJAOQCa0Wv4ijH4oV8jCt0XXa7QeAwh_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy4UTlAndyjnp2ewsrCt-2BFF6YBxWC-2Fs8jPePKytyv7tMxa40glroO4Og-2FIqol8CthioKYLh4OmyLj-2Bw1EU-2Bsqkyeb8FIUg2onczwtfwADIbD7m-2Bd4oYVehQC6TKuBvz5wtBjxivAnHuQcFeZ1aRyZqhjNg-2B3xGMUAuHJJAcDecDV8-3D


Context


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.