New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sat Oct 16 10:24:08 UTC 2021
Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
1 new defect(s) introduced to LibreOffice found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1492880: (NEGATIVE_RETURNS)
________________________________________________________________________________________________________
*** CID 1492880: (NEGATIVE_RETURNS)
/sc/source/ui/docshell/externalrefmgr.cxx: 1771 in ScExternalRefManager::storeRangeNameTokens(unsigned short, const rtl::OUString &, const ScTokenArray &)()
1765 bool bTokenAdded = false;
1766 switch (pToken->GetType())
1767 {
1768 case svSingleRef:
1769 {
1770 const ScSingleRefData& rRef = *pToken->GetSingleRef();
>>> CID 1492880: (NEGATIVE_RETURNS)
>>> "rRef->Tab()" is passed to a parameter that cannot be negative.
1771 OUString aTabName = maRefCache.getTableName(nFileId, rRef.Tab());
1772 ScExternalSingleRefToken aNewToken(nFileId, svl::SharedString(aTabName), // string not interned
1773 *pToken->GetSingleRef());
1774 pNewArray->AddToken(aNewToken);
1775 bTokenAdded = true;
1776 }
/sc/source/ui/docshell/externalrefmgr.cxx: 1781 in ScExternalRefManager::storeRangeNameTokens(unsigned short, const rtl::OUString &, const ScTokenArray &)()
1775 bTokenAdded = true;
1776 }
1777 break;
1778 case svDoubleRef:
1779 {
1780 const ScSingleRefData& rRef = *pToken->GetSingleRef();
>>> CID 1492880: (NEGATIVE_RETURNS)
>>> "rRef->Tab()" is passed to a parameter that cannot be negative.
1781 OUString aTabName = maRefCache.getTableName(nFileId, rRef.Tab());
1782 ScExternalDoubleRefToken aNewToken(nFileId, svl::SharedString(aTabName), // string not interned
1783 *pToken->GetDoubleRef());
1784 pNewArray->AddToken(aNewToken);
1785 bTokenAdded = true;
1786 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D4ME2_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiatsvszQV9nJbNxYbtjTOohGQA-2FuExu3X0beEiWtI3ZTFZLH-2BoapCju3IXlbEVrSDKQStN-2BJpSx5Yl9RV6lGVLSAigKOHNNuAS4b82mIEiX4tl-2B85u-2FPHS5nczeija9ZottU0nNNqSgMndEHF9C79K4GZK5AOOBo0Ssb-2FxvUpwWE-3D
More information about the LibreOffice
mailing list