New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Fri Aug 6 00:59:27 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.
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 2 of 2 defect(s)
** CID 1489780: (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1489780: (FORWARD_NULL)
/formula/source/core/api/FormulaCompiler.cxx: 185 in formula::<unnamed>::OpCodeList::OpCodeList(const std::pair<const char *, int> *, const std::shared_ptr<formula::FormulaCompiler::OpCodeMap> &, formula::FormulaCompiler::SeparatorType)()
179 std::unique_ptr<CharClass> xCharClass( xMap->isEnglish() ? nullptr : createCharClassIfNonEnglishUI());
180 const CharClass* pCharClass = xCharClass.get();
181 if (meSepType == FormulaCompiler::SeparatorType::RESOURCE_BASE)
182 {
183 for (sal_uInt16 i = 0; i <= SC_OPCODE_LAST_OPCODE_ID; ++i)
184 {
>>> CID 1489780: (FORWARD_NULL)
>>> "putDefaultOpCode" dereferences null "this->mpSymbols2".
185 putDefaultOpCode( xMap, i, pCharClass);
186 }
187 }
188 else
189 {
190 for (sal_uInt16 i = 0; i <= SC_OPCODE_LAST_OPCODE_ID; ++i)
/formula/source/core/api/FormulaCompiler.cxx: 196 in formula::<unnamed>::OpCodeList::OpCodeList(const std::pair<const char *, int> *, const std::shared_ptr<formula::FormulaCompiler::OpCodeMap> &, formula::FormulaCompiler::SeparatorType)()
190 for (sal_uInt16 i = 0; i <= SC_OPCODE_LAST_OPCODE_ID; ++i)
191 {
192 OUString aOpStr;
193 if ( getOpCodeString( aOpStr, i) )
194 xMap->putOpCode( aOpStr, OpCode(i), pCharClass);
195 else
>>> CID 1489780: (FORWARD_NULL)
>>> "putDefaultOpCode" dereferences null "this->mpSymbols2".
196 putDefaultOpCode( xMap, i, pCharClass);
197 }
198 }
199 }
200
201 OpCodeList::OpCodeList(const std::pair<TranslateId, int>* pSymbols, const FormulaCompiler::NonConstOpCodeMapPtr& xMap,
** CID 1489779: Uninitialized members (UNINIT_CTOR)
/cppu/source/threadpool/current.cxx: 88 in cppu::IdContainer::IdContainer()()
________________________________________________________________________________________________________
*** CID 1489779: Uninitialized members (UNINIT_CTOR)
/cppu/source/threadpool/current.cxx: 88 in cppu::IdContainer::IdContainer()()
82
83 IdContainer::IdContainer()
84 {
85 pCurrentContext = nullptr;
86 pCurrentContextEnv = nullptr;
87 bInit = false;
>>> CID 1489779: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "pCurrentId" is not initialized in this constructor nor in any functions that it calls.
88 }
89
90 IdContainer::~IdContainer()
91 {
92 if (pCurrentContext)
93 {
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D40zJ_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi-2Baefm4BIHP4WMnGJFzx4MRUhOndRgt-2B94NY3pPPgGSHdMvUjmQ-2BQMC8Cd-2Fx4yzfUhq4y8Iyhj-2BCxKaCMpnj-2F3lysjoU5Dx5nWrNDpC-2FZ8nh6YeVKKtYcW8LgZoMUAeFTA8JfoZ0GncXnqFXui1iGiSwJciI2tKG9k3qEVLPNkCg-3D
More information about the LibreOffice
mailing list