New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Wed Sep 23 14:28:06 UTC 2020
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 1467434: Resource leaks (RESOURCE_LEAK)
/sal/cppunittester/cppunittester.cxx: 314 in <unnamed>::ProtectedFixtureFunctor::run() const()
________________________________________________________________________________________________________
*** CID 1467434: Resource leaks (RESOURCE_LEAK)
/sal/cppunittester/cppunittester.cxx: 314 in <unnamed>::ProtectedFixtureFunctor::run() const()
308 boost::split(test_names, pVal, boost::is_any_of("\t "));
309 CppUnit::Test* pTest = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
310 bool const added(addRecursiveTests(test_names, pTest, runner));
311 if (!added)
312 {
313 std::cerr << "\nFatal error: CPPUNIT_TEST_NAME contains no valid tests\n";
>>> CID 1467434: Resource leaks (RESOURCE_LEAK)
>>> Variable "manager" going out of scope leaks the storage it points to.
314 return false;
315 }
316 }
317 else
318 {
319 runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
** CID 1467433: Null pointer dereferences (NULL_RETURNS)
________________________________________________________________________________________________________
*** CID 1467433: Null pointer dereferences (NULL_RETURNS)
/sw/source/uibase/docvw/AnnotationWin.cxx: 450 in sw::annotation::SwAnnotationWin::InitAnswer(const OutlinerParaObject *)()
444
445 //collect our old meta data
446 SwAnnotationWin* pWin = mrMgr.GetNextPostIt(KEY_PAGEUP, this);
447 const SvtSysLocale aSysLocale;
448 const LocaleDataWrapper& rLocalData = aSysLocale.GetLocaleData();
449 SwRewriter aRewriter;
>>> CID 1467433: Null pointer dereferences (NULL_RETURNS)
>>> Dereferencing a pointer that might be "nullptr" "pWin" when calling "GetAuthor".
450 aRewriter.AddRule(UndoArg1, pWin->GetAuthor());
451 const OUString aText = aRewriter.Apply(SwResId(STR_REPLY))
452 + " (" + rLocalData.getDate( pWin->GetDate())
453 + ", " + rLocalData.getTime( pWin->GetTime(), false)
454 + "): \"";
455 GetOutlinerView()->InsertText(aText);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DhzdU_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi1tdR4BoZvedyCSgAyZMLvKXxcD3xMmpjbefYy7SGNWRcFrsWe-2BbLcOTkl8ofcyYLQ08lkAXHI7LkRx7SihPHSDHBgyoBvichSbE3fp1LWAMAWW6PR-2BxkNKRwJ24AjY96SR7KM1uMBpqZQnax7u20e7pSNxdU2sJYbS8LTiZWUuUI1QaNGyWCHPZ1dWROdrvZ
More information about the LibreOffice
mailing list