New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Jul 18 14:46:22 UTC 2017


Hi,

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

4 new defect(s) introduced to LibreOffice found with Coverity Scan.
5 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 4 of 4 defect(s)


** CID 1415515:  Incorrect expression  (DIVIDE_BY_ZERO)
/drawinglayer/source/tools/emfphelperdata.cxx: 367 in emfplushelper::EmfPlusHelperData::EmfPlusHelperData(SvMemoryStream &, wmfemfhelper::TargetHolders &, wmfemfhelper::PropertyHolders &)()


________________________________________________________________________________________________________
*** CID 1415515:  Incorrect expression  (DIVIDE_BY_ZERO)
/drawinglayer/source/tools/emfphelperdata.cxx: 367 in emfplushelper::EmfPlusHelperData::EmfPlusHelperData(SvMemoryStream &, wmfemfhelper::TargetHolders &, wmfemfhelper::PropertyHolders &)()
361             mnHDPI(0),
362             mnVDPI(0),
363             mnFrameLeft(0),
364             mnFrameTop(0),
365             mnFrameRight(0),
366             mnFrameBottom(0),
>>>     CID 1415515:  Incorrect expression  (DIVIDE_BY_ZERO)
>>>     Assigning: "this->mnPixX" = "0".
367             mnPixX(0),
368             mnPixY(0),
369             mnMmX(0),
370             mnMmY(0),
371             mbMultipart(false),
372             mMFlags(0),

** CID 1415514:    (FORWARD_NULL)
/sw/source/core/layout/sectfrm.cxx: 1730 in SwFrame::GetPrevSctLeaf()()
/sw/source/core/layout/sectfrm.cxx: 1730 in SwFrame::GetPrevSctLeaf()()


________________________________________________________________________________________________________
*** CID 1415514:    (FORWARD_NULL)
/sw/source/core/layout/sectfrm.cxx: 1730 in SwFrame::GetPrevSctLeaf()()
1724         }
1725     
1726         if( bJump )     // Did we skip a blank page?
1727             SwFlowFrame::SetMoveBwdJump( true );
1728     
1729         SwSectionFrame *pSect = FindSctFrame();
>>>     CID 1415514:    (FORWARD_NULL)
>>>     Comparing "pSect" to null implies that "pSect" might be null.
1730         if (!pCol && pSect && IsInTab() && !IsInTableInSection(this))
1731         {
1732             // We don't have a previous section yet, and we're in a
1733             // section-in-table.
1734             if (SwFlowFrame* pPrecede = pSect->GetPrecede())
1735             {
/sw/source/core/layout/sectfrm.cxx: 1730 in SwFrame::GetPrevSctLeaf()()
1724         }
1725     
1726         if( bJump )     // Did we skip a blank page?
1727             SwFlowFrame::SetMoveBwdJump( true );
1728     
1729         SwSectionFrame *pSect = FindSctFrame();
>>>     CID 1415514:    (FORWARD_NULL)
>>>     Comparing "pSect" to null implies that "pSect" might be null.
1730         if (!pCol && pSect && IsInTab() && !IsInTableInSection(this))
1731         {
1732             // We don't have a previous section yet, and we're in a
1733             // section-in-table.
1734             if (SwFlowFrame* pPrecede = pSect->GetPrecede())
1735             {

** CID 1415513:  Incorrect expression  (DIVIDE_BY_ZERO)
/drawinglayer/source/tools/emfphelperdata.cxx: 368 in emfplushelper::EmfPlusHelperData::EmfPlusHelperData(SvMemoryStream &, wmfemfhelper::TargetHolders &, wmfemfhelper::PropertyHolders &)()


________________________________________________________________________________________________________
*** CID 1415513:  Incorrect expression  (DIVIDE_BY_ZERO)
/drawinglayer/source/tools/emfphelperdata.cxx: 368 in emfplushelper::EmfPlusHelperData::EmfPlusHelperData(SvMemoryStream &, wmfemfhelper::TargetHolders &, wmfemfhelper::PropertyHolders &)()
362             mnVDPI(0),
363             mnFrameLeft(0),
364             mnFrameTop(0),
365             mnFrameRight(0),
366             mnFrameBottom(0),
367             mnPixX(0),
>>>     CID 1415513:  Incorrect expression  (DIVIDE_BY_ZERO)
>>>     Assigning: "this->mnPixY" = "0".
368             mnPixY(0),
369             mnMmX(0),
370             mnMmY(0),
371             mbMultipart(false),
372             mMFlags(0),
373             mMStream(),

** CID 1415512:  Error handling issues  (CHECKED_RETURN)
/xmlsecurity/source/helper/xsecverify.cxx: 316 in XSecController::setDate(rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1415512:  Error handling issues  (CHECKED_RETURN)
/xmlsecurity/source/helper/xsecverify.cxx: 316 in XSecController::setDate(rtl::OUString &)()
310         if (m_vInternalSignatureInformations.empty())
311         {
312             SAL_INFO("xmlsecurity.helper","XSecController::setDate: no signature");
313             return;
314         }
315         InternalSignatureInformation &isi = m_vInternalSignatureInformations.back();
>>>     CID 1415512:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "ISO8601parseDateTime" without checking return value (as is done elsewhere 6 out of 7 times).
316         utl::ISO8601parseDateTime( ouDate, isi.signatureInfor.stDateTime);
317         isi.signatureInfor.ouDateTime = ouDate;
318     }
319     
320     void XSecController::setDescription(const OUString& rDescription)
321     {


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyDie-2BDrcL4ncHmwm-2BxcOacz6r2AFpHbC3T-2B-2F0vSmO3QIl9IdWi486lpo2XTFYcghuIPp1RXd1PnYkLoeWEyV1dn-2BSLU89m89HMoUFCkXqFGeMhZE4BAs-2F-2Fe8lT-2BDMg2d-2BumAiWMX8LGDlsHqQF7Jd9Dd-2BZ9vG4EOqi9W3A5YtSlU-3D

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyDie-2BDrcL4ncHmwm-2BxcOac5rzJzpeKX1osX7WwSq51HtxGjF-2F1rXQHDp9GdW5RBebHLvARycpDDGQUXRCXQh0qodM79MULZXSOJ7I4KPos7a5ImDzaY4j2TUoLfEsA9d8lwbQE7MYLsA7sXdHnq-2BEAnQqK9FDyJRdSMeivGGBKqM-3D



More information about the LibreOffice mailing list