New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Jun 12 16:43:34 UTC 2018


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.
13 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 1436922:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/text/txtfrm.cxx: 1987 in SwTextFrame::SwClientNotify(const SwModify &, const SfxHint &)()


________________________________________________________________________________________________________
*** CID 1436922:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/text/txtfrm.cxx: 1987 in SwTextFrame::SwClientNotify(const SwModify &, const SfxHint &)()
1981                         InvalidatePrt_();
1982                     }
1983     
1984                     const bool bMergeModify = (m_pMergedPara &&
1985                             (m_pMergedPara->pParaPropsNode != &rModify ||
1986                              m_pMergedPara->pFirstNode != &rModify));
>>>     CID 1436922:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pNew" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1987                     const bool bHasOldNew = pOld && pNew;
1988                     if ((nClear || bMergeModify) && bHasOldNew)
1989                     {
1990                         SwAttrSetChg aOldSet( *static_cast<const SwAttrSetChg*>(pOld) );
1991                         SwAttrSetChg aNewSet( *static_cast<const SwAttrSetChg*>(pNew) );
1992     

** CID 1436921:  Memory - illegal accesses  (WRAPPER_ESCAPE)
/vcl/unx/generic/app/sm.cxx: 73 in X11SalInstance::CreateSalSession()()


________________________________________________________________________________________________________
*** CID 1436921:  Memory - illegal accesses  (WRAPPER_ESCAPE)
/vcl/unx/generic/app/sm.cxx: 73 in X11SalInstance::CreateSalSession()()
67     
68     std::unique_ptr<SalSession> X11SalInstance::CreateSalSession()
69     {
70         SAL_INFO("vcl.sm", "X11SalInstance::CreateSalSession");
71     
72         std::unique_ptr<SalSession> p(new IceSalSession);
>>>     CID 1436921:  Memory - illegal accesses  (WRAPPER_ESCAPE)
>>>     The internal representation of local "p" escapes, but is destroyed when it exits scope.
73         SessionManagerClient::open(p.get());
74         return p;
75     }
76     
77     void IceSalSession::queryInteraction()
78     {


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyXqpsGoC-2BHiF-2Bd8nuqU01dMYx-2FK7rMr7LJqVacKLBW2BYJH8puO4nTs7Z6LYrxkQ4Yq0hogRakLNsHFnhjVTrFKy8Fl1HS040jJylvu9fVG3PTqzvUSRW7nqWgJnFjYsRQ7cf7b3YFK-2FBqkfH9Hn2PnmNmBWIMGk700NfzJmosJs-3D



More information about the LibreOffice mailing list