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. 4 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 1635586: Null pointer dereferences (FORWARD_NULL) /vcl/source/gdi/pdfwriter_impl.cxx: 1466 in vcl::PDFWriterImpl::PDFWriterImpl(const vcl::PDFWriter::PDFWriterContext &, const com::sun::star::uno::Reference<com::sun::star::beans::XMaterialHolder> &, vcl::PDFWriter&)() ________________________________________________________________________________________________________ *** CID 1635586: Null pointer dereferences (FORWARD_NULL) /vcl/source/gdi/pdfwriter_impl.cxx: 1466 in vcl::PDFWriterImpl::PDFWriterImpl(const vcl::PDFWriter::PDFWriterContext &, const com::sun::star::uno::Reference<com::sun::star::beans::XMaterialHolder> &, vcl::PDFWriter&)() 1460 m_pPDFEncryptor.reset(new PDFEncryptor); 1461 m_pPDFEncryptor->prepareEncryption(xEncryptionMaterialHolder, m_aContext.Encryption); 1462 } 1463 1464 if (m_aContext.Encryption.Encrypt()) 1465 { >>> CID 1635586: Null pointer dereferences (FORWARD_NULL) >>> Attempting to access the managed object of an empty smart pointer "this->m_pPDFEncryptor". 1466 m_pPDFEncryptor->setupKeysAndCheck(m_aContext.Encryption); 1467 } 1468 1469 // write header 1470 OStringBuffer aBuffer( 20 ); 1471 aBuffer.append( "%PDF-" ); ** CID 1635585: Null pointer dereferences (NULL_RETURNS) ________________________________________________________________________________________________________ *** CID 1635585: Null pointer dereferences (NULL_RETURNS) /starmath/source/view.cxx: 1864 in SmViewShell::Execute(SfxRequest &)() 1858 GetFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, 1859 SmResId(STR_USER_DEFINED_FORMULA_EXISTS).replaceAll("%1", aName))); 1860 if (xQuery->run() == RET_NO) 1861 break; 1862 } 1863 SmEditWindow* pEditWin = GetEditWindow(); >>> CID 1635585: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing a pointer that might be "nullptr" "pEditWin" when calling "GetText". 1864 SmModule::get()->GetConfig()->SaveUserDefinedFormula(aName, pEditWin->GetText()); 1865 1866 // Show the Elements sidebar with the "User-defined" entry selected 1867 GetViewFrame().ShowChildWindow(SID_SIDEBAR); 1868 sfx2::sidebar::Sidebar::ShowPanel(u"MathElementsPanel", 1869 GetViewFrame().GetFrame().GetFrameInterface()); ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3DiP9j_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGt7xq9egD8P7ccw-2BnP9oxqTwpQywfHv5PXshovO4f1P9dLWtlbxBK6MgJjO93f-2BkeMd15kvIK5GyvqCZnA2bcyqmNJiqbD5slm9vS5izUc-2BHq4jGNsrVMrE8oA30fW9RoW6eyW3kQSQpqsNCZMWu7sxz0IDOs0T8cCjswShvMo2y4-3D