New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Thu Apr 12 04:46:09 UTC 2018
Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
3 new defect(s) introduced to LibreOffice found with Coverity Scan.
25 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 3 of 3 defect(s)
** CID 1434221: Uninitialized variables (UNINIT)
/sw/qa/extras/accessibility/accessible_relation_set.cxx: 225 in AccessibleRelationSet::contents_flows_to_and_from()()
________________________________________________________________________________________________________
*** CID 1434221: Uninitialized variables (UNINIT)
/sw/qa/extras/accessibility/accessible_relation_set.cxx: 225 in AccessibleRelationSet::contents_flows_to_and_from()()
219 else
220 {
221 CPPUNIT_FAIL("didn't gain correct relation type");
222 }
223 }
224
>>> CID 1434221: Uninitialized variables (UNINIT)
>>> Using uninitialized value "relationtypes[0]" when calling "operator []". [Note: The source code implementation of the function has been overridden by a builtin model.]
225 CPPUNIT_ASSERT_EQUAL_MESSAGE("didn't gain correct relation type for paragraph 1", types[1],
226 types[relationtypes[0]]);
227
228 css::uno::Reference<css::accessibility::XAccessibleText> paraText1(para1, uno::UNO_QUERY_THROW);
229 CPPUNIT_ASSERT_EQUAL_MESSAGE("didn't gain correct target paragraph", atargets[0]->getText(),
230 paraText1->getText());
** CID 1434220: Resource leaks (RESOURCE_LEAK)
/sw/source/core/layout/fly.cxx: 2554 in SwFlyFrame::GetContour(tools::PolyPolygon &, bool) const()
________________________________________________________________________________________________________
*** CID 1434220: Resource leaks (RESOURCE_LEAK)
/sw/source/core/layout/fly.cxx: 2554 in SwFlyFrame::GetContour(tools::PolyPolygon &, bool) const()
2548 if( !aClip.Height() )
2549 aClip.Height( 1 );
2550 rContour.Clip( aClip.SVRect() );
2551 rContour.Optimize(PolyOptimizeFlags::CLOSE);
2552 bRet = true;
2553 }
>>> CID 1434220: Resource leaks (RESOURCE_LEAK)
>>> Variable "pGrfObj" going out of scope leaks the storage it points to.
2554 }
2555 else
2556 {
2557 const SwFlyFreeFrame* pSwFlyFreeFrame(dynamic_cast< const SwFlyFreeFrame* >(this));
2558
2559 if(nullptr != pSwFlyFreeFrame &&
** CID 1434219: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/move.h: 47 in std::__addressof<GraphicObject>(T1 &)()
________________________________________________________________________________________________________
*** CID 1434219: Error handling issues (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/move.h: 47 in std::__addressof<GraphicObject>(T1 &)()
41 /**
42 * @brief Same as C++11 std::addressof
43 * @ingroup utilities
44 */
45 template<typename _Tp>
46 inline _GLIBCXX_CONSTEXPR _Tp*
>>> CID 1434219: Error handling issues (UNCAUGHT_EXCEPT)
>>> An exception of type "com::sun::star::uno::DeploymentException" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
47 __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
48 { return __builtin_addressof(__r); }
49
50 _GLIBCXX_END_NAMESPACE_VERSION
51 } // namespace
52
________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyr5nHbeZSL2sWOLUKZwewgvqWe7lWucDuTjZeZ9rsv94sLwNEAy81QW-2Fvaw-2FXuLt-2FYRMgSQhs-2F0q-2B3DU3FbUSRBc1QeQbDuBLriUERs3YtZWN8IMALiPZShwAqoy4H3-2BJuYMscXmLwZ6mEsJS0AkkUmJjCYGtH4ne9p2dtMp2S74-3D
More information about the LibreOffice
mailing list