Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

3 new defect(s) introduced to LibreOffice found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1466575:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1466575:  Null pointer dereferences  (NULL_RETURNS)
/sw/source/core/text/txtfld.cxx: 482 in 
checkApplyParagraphMarkFormatToNumbering(SwFont *, SwTextFormatInfo &, const 
IDocumentSettingAccess *, const SwAttrSet *)()
476                     && !pCleanedSet->HasItem(nWhich)
477                     && !(pFormat && pFormat->HasItem(nWhich)) )
478                 {
479                     // Copy from parent sets only allowed items which will 
not overwrite
480                     // values explicitly defined in current set 
(pCleanedSet) or in pFormat
481                     const SfxPoolItem* pItem = rStyleAttrs.GetItem(nWhich, 
true);
>>>     CID 1466575:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pItem" when calling 
>>> "Put".
482                     pCleanedSet->Put(*pItem);
483                 }
484                 nWhich = aIter.NextWhich();
485             }
486     
487             // It is not required here anymore, all referenced items are 
inserted

** CID 1466574:  Uninitialized members  (UNINIT_CTOR)
/xmloff/source/draw/XMLNumberStyles.cxx: 599 in 
SdXMLNumberFormatImportContext::SdXMLNumberFormatImportContext(SdXMLImport &, 
int, SvXMLNumImpData *, SvXMLStylesTokens, const 
com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, 
SvXMLStylesContext &)()


________________________________________________________________________________________________________
*** CID 1466574:  Uninitialized members  (UNINIT_CTOR)
/xmloff/source/draw/XMLNumberStyles.cxx: 599 in 
SdXMLNumberFormatImportContext::SdXMLNumberFormatImportContext(SdXMLImport &, 
int, SvXMLNumImpData *, SvXMLStylesTokens, const 
com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> &, 
SvXMLStylesContext &)()
593             OUString sValue = aIter.toString();
594             if( aIter.getToken() == XML_ELEMENT(NUMBER, 
XML_AUTOMATIC_ORDER) )
595                     mbAutomatic = IsXMLToken( sValue, XML_TRUE );
596             else
597                 SAL_WARN("xmloff", "unknown attribute " << 
SvXMLImport::getPrefixAndNameFromToken(aIter.getToken()) << "=" << 
aIter.toString());
598         }
>>>     CID 1466574:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnElements" is not initialized in this 
>>> constructor nor in any functions that it calls.
599     }
600     
601     SdXMLNumberFormatImportContext::~SdXMLNumberFormatImportContext()
602     {
603     }
604     

** CID 1466573:  Null pointer dereferences  (FORWARD_NULL)
/i18npool/source/textconversion/textconversion_zh.cxx: 228 in 
i18npool::TextConversion_zh::getWordConversion(const rtl::OUString &, int, int, 
bool, int, com::sun::star::uno::Sequence<int> &)()


________________________________________________________________________________________________________
*** CID 1466573:  Null pointer dereferences  (FORWARD_NULL)
/i18npool/source/textconversion/textconversion_zh.cxx: 228 in 
i18npool::TextConversion_zh::getWordConversion(const rtl::OUString &, int, int, 
bool, int, com::sun::star::uno::Sequence<int> &)()
222                         if (result < 0)
223                             top = current - 1;
224                         else if (result > 0)
225                             bottom = current + 1;
226                         else {
227                             if (toSChinese)   // Traditionary/Simplified 
conversion,
>>>     CID 1466573:  Null pointer dereferences  (FORWARD_NULL)
>>>     Dereferencing null pointer "wordData".
228                                 for (current = entry[current]-1; current > 
0 && wordData[current-1]; current--) ;
229                             else  // Simplified/Traditionary conversion, 
forwards search for next word
230                                 current = entry[current] + word.getLength() 
+ 1;
231                             sal_Int32 start=current;
232                             if (offset.hasElements()) {
233                                 if (word.getLength() != 
OUString(&wordData[current]).getLength())


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D5GMp_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiGVeRp6G7YmBGTqa9yZi0l3CmubIs-2B6Dqe84bBdC02FnsTv2nj8mSRil18NHCakTJcv09Pm2GuGubj1jTqjAgcto-2BQcGOQfyhqR2w9S1ABDN5YuwwV2tVSjsyj-2Bv15mifNt7-2F2aVaCuQy-2BkltxCDfmySLjWQhKDEP2VaH652SXI-2FJsaXbPTscipE3LpPdYZuj

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to