New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Thu May 26 11:07:30 UTC 2022
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.
1 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 1504575: Null pointer dereferences (REVERSE_INULL)
/svx/source/svdraw/svdedtv2.cxx: 1914 in SdrEditView::UnGroupMarked()()
________________________________________________________________________________________________________
*** CID 1504575: Null pointer dereferences (REVERSE_INULL)
/svx/source/svdraw/svdedtv2.cxx: 1914 in SdrEditView::UnGroupMarked()()
1908 bNameOk = false;
1909 }
1910 }
1911 size_t nDstCnt=pGrp->GetOrdNum();
1912 SdrObjList* pDstLst=pM->GetPageView()->GetObjList();
1913 size_t nObjCount=pSrcLst->GetObjCount();
>>> CID 1504575: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "pGrp" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
1914 const bool bIsDiagram(nullptr != pGrp && pGrp->isDiagram());
1915
1916 // If the Group is a Diagram, it has a filler BG object to guarantee
1917 // the Diagam's dimensions. Identify that shape
1918 if(bIsDiagram && nObjCount)
1919 {
** CID 1504574: Resource leaks (RESOURCE_LEAK)
/comphelper/source/property/propertysetinfo.cxx: 68 in comphelper::PropertySetInfo::PropertySetInfo(const com::sun::star::uno::Sequence<com::sun::star::beans::Property> &)()
________________________________________________________________________________________________________
*** CID 1504574: Resource leaks (RESOURCE_LEAK)
/comphelper/source/property/propertysetinfo.cxx: 68 in comphelper::PropertySetInfo::PropertySetInfo(const com::sun::star::uno::Sequence<com::sun::star::beans::Property> &)()
62 pEntry->mnAttributes = it.Attributes;
63 pEntry->mnMemberId = 0;
64
65 maPropertyMap.emplace(it.Name, pEntry);
66 ++pEntry;
67 }
>>> CID 1504574: Resource leaks (RESOURCE_LEAK)
>>> Variable "pEntries" going out of scope leaks the storage it points to.
68 }
69
70 PropertySetInfo::~PropertySetInfo() noexcept
71 {
72 }
73
** CID 1504573: Null pointer dereferences (REVERSE_INULL)
/sc/source/ui/drawfunc/drawsh2.cxx: 273 in ScDrawShell::GetDrawFuncState(SfxItemSet &)()
________________________________________________________________________________________________________
*** CID 1504573: Null pointer dereferences (REVERSE_INULL)
/sc/source/ui/drawfunc/drawsh2.cxx: 273 in ScDrawShell::GetDrawFuncState(SfxItemSet &)()
267 // Fit to cell is only available for cell anchored graphics obviously
268 if (pView->GetAnchorType() != SCA_CELL &&
269 pView->GetAnchorType() != SCA_CELL_RESIZE)
270 rSet.DisableItem( SID_FITCELLSIZE );
271
272 // Support advanced DiagramHelper
>>> CID 1504573: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "pObj" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
273 if(!pObj || !pObj->isDiagram())
274 {
275 rSet.DisableItem( SID_REGENERATE_DIAGRAM );
276 rSet.DisableItem( SID_EDIT_DIAGRAM );
277 }
278 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D11iy_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiQ1QmrkDcLQd5xznF8pRLvhXx7Y830k-2BrEdeTp1TWRXeDqmkI8HPYjN-2Bv-2B2jM4eAdaw2rZqMNTe4FSX5eyzlk66dOBNdayB0PDKbazlYlj9U0cuB7-2B-2B1BuNsGjOj3rng6SeBhcOtTVzmyIQHqViJP3zAA3UyEMRSzz7n9kqXgrio-3D
More information about the LibreOffice
mailing list