New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Dec 9 09:51:50 PST 2015


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.
6 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 1341778:  Control flow issues  (DEADCODE)
/sc/source/core/tool/formulagroup.cxx: 347 in sc::FormulaGroupInterpreter::switchOpenCLDevice(const rtl::OUString &, bool, bool)()


________________________________________________________________________________________________________
*** CID 1341778:  Control flow issues  (DEADCODE)
/sc/source/core/tool/formulagroup.cxx: 347 in sc::FormulaGroupInterpreter::switchOpenCLDevice(const rtl::OUString &, bool, bool)()
341         if (bOpenCLEnabled)
342         {
343             msInstance = new sc::opencl::FormulaGroupInterpreterOpenCL();
344             return msInstance != nullptr;
345         }
346     
>>>     CID 1341778:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "return false;".
347         return false;
348     }
349     
350     void FormulaGroupInterpreter::getOpenCLDeviceInfo(sal_Int32& rDeviceId, sal_Int32& rPlatformId)
351     {
352         rDeviceId = -1;

** CID 1341777:  Resource leaks  (CTOR_DTOR_LEAK)
/sw/source/filter/ww8/ww8scan.cxx: 1706 in WW8ScannerBase::WW8ScannerBase(SvStream *, SvStream *, SvStream *, WW8Fib *)()


________________________________________________________________________________________________________
*** CID 1341777:  Resource leaks  (CTOR_DTOR_LEAK)
/sw/source/filter/ww8/ww8scan.cxx: 1706 in WW8ScannerBase::WW8ScannerBase(SvStream *, SvStream *, SvStream *, WW8Fib *)()
1700             pHdFtTxbx = new WW8PLCFspecial( pTableSt, pWwFib->fcPlcfHdrtxbxText,
1701                 pWwFib->lcbPlcfHdrtxbxText, nLenTxBxS );
1702         }
1703     
1704         pBook = new WW8PLCFx_Book(pTableSt, *pWwFib);
1705         pAtnBook = new WW8PLCFx_AtnBook(pTableSt, *pWwFib);
>>>     CID 1341777:  Resource leaks  (CTOR_DTOR_LEAK)
>>>     The constructor allocates field "pFactoidBook" of "WW8ScannerBase" but the destructor and whatever functions it calls do not free it.
1706         pFactoidBook = new WW8PLCFx_FactoidBook(pTableSt, *pWwFib);
1707     }
1708     
1709     WW8ScannerBase::~WW8ScannerBase()
1710     {
1711         DeletePieceTable();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939



More information about the LibreOffice mailing list