New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Wed Jan 18 04:50:09 UTC 2023
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.
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 1 of 1 defect(s)
** CID 1519129: (NEGATIVE_RETURNS)
________________________________________________________________________________________________________
*** CID 1519129: (NEGATIVE_RETURNS)
/xmloff/source/transform/EventOASISTContext.cxx: 275 in XMLEventOASISTransformerContext::StartElement(const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> &)()
269
270 sal_Int16 idx = pMutableAttrList->GetIndexByName(
271 GetTransformer().GetNamespaceMap().GetQNameByKey(
272 XML_NAMESPACE_SCRIPT,
273 GetXMLToken( XML_LANGUAGE ) ) );
274
>>> CID 1519129: (NEGATIVE_RETURNS)
>>> "idx" is passed to a parameter that cannot be negative.
275 pMutableAttrList->SetValueByIndex( idx,
276 "StarBasic" );
277
278 OUString aLocQName(
279 GetTransformer().GetNamespaceMap().GetQNameByKey(
280 XML_NAMESPACE_SCRIPT,
/xmloff/source/transform/EventOASISTContext.cxx: 223 in XMLEventOASISTransformerContext::StartElement(const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> &)()
217
218 sal_Int16 idx = pMutableAttrList->GetIndexByName(
219 GetTransformer().GetNamespaceMap().GetQNameByKey(
220 XML_NAMESPACE_SCRIPT,
221 GetXMLToken( XML_LANGUAGE ) ) );
222
>>> CID 1519129: (NEGATIVE_RETURNS)
>>> "idx" is passed to a parameter that cannot be negative.
223 pMutableAttrList->SetValueByIndex( idx,
224 "StarBasic" );
225
226 OUString aLocQName(
227 GetTransformer().GetNamespaceMap().GetQNameByKey(
228 XML_NAMESPACE_SCRIPT,
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DLI7b_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiLJzrNcBbFlWIFl92TP4shgwEzj7y7oCs-2Bmw6YlgitkKC7ruPq4qx5F75vaSqGxXnd4Mx0NwIeMn-2B4r-2FrTE6ESlduWhXfsVFmx-2FCAspOhxPdP4wTFEakf6JGvkHNVSfHR2eD842oQJYhc59rnid75MaE51tzjOrs2Rg518zt5YDA-3D
More information about the LibreOffice
mailing list