New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Sep 19 09:36:13 UTC 2021


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.
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 2 of 2 defect(s)


** CID 1492160:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/uibase/utlui/glbltree.cxx: 800 in SwGlobalTree::UpdateTracking()()


________________________________________________________________________________________________________
*** CID 1492160:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/uibase/utlui/glbltree.cxx: 800 in SwGlobalTree::UpdateTracking()()
794         {
795             const SwSection* pSection = pActiveShellCurrSection;
796             SwSection* pParent;
797             while ((pParent = pSection->GetParent()) != nullptr)
798                 pSection = pParent;
799     
>>>     CID 1492160:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pSection" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
800             if (pSection)
801                 m_xTreeView->select_text(pSection->GetSectionName());
802         }
803     }
804     
805     void SwGlobalTree::GotoContent(const SwGlblDocContent* pCont)

** CID 1492159:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontmetric.cxx: 66 in FontMetric::FontMetric(const PhysicalFontFace &)()


________________________________________________________________________________________________________
*** CID 1492159:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontmetric.cxx: 66 in FontMetric::FontMetric(const PhysicalFontFace &)()
60         SetPitch(rFace.GetPitch());
61         SetWeight(rFace.GetWeight());
62         SetItalic(rFace.GetItalic());
63         SetAlignment(TextAlign::ALIGN_TOP);
64         SetWidthType(rFace.GetWidthType());
65         SetQuality(rFace.GetQuality() );
>>>     CID 1492159:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mbFullstopCentered" is not initialized in this constructor nor in any functions that it calls.
66     }
67     
68     FontMetric::~FontMetric()
69     {
70     }
71     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DyyGl_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiCgCXSXq-2Fe0lSJPU6Sn6aiOSzHqNaWjCGPQmQweCFymAh6ZOTSmEeoviLonQGWzam8eI8OTU22AuyPWjo3g8fKhkHRoC-2FCgnSINUhJAZZ7DXoCq5fXltMMOEzuP25N1LD3OCRj8Gnh2L-2BksFYGZG1O5kAB-2FcW-2Bdai7C99JCS-2Fa6Y-3D



More information about the LibreOffice mailing list