New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Thu Jan 26 13:02:12 UTC 2023


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 1520594:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/framework/configuration/ConfigurationController.cxx: 104 in sd::framework::ConfigurationController::ConfigurationController(const com::sun::star::uno::Reference<com::sun::star::frame::XController> &)()


________________________________________________________________________________________________________
*** CID 1520594:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/framework/configuration/ConfigurationController.cxx: 104 in sd::framework::ConfigurationController::ConfigurationController(const com::sun::star::uno::Reference<com::sun::star::frame::XController> &)()
98         if (mxController.is())
99             mxController->unlock();
100     }
101     
102     //===== ConfigurationController ===============================================
103     
>>>     CID 1520594:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::DeploymentException" is thrown but the exception specification "noexcept" doesn't allow it to be thrown. This will result in a call to terminate().
104     ConfigurationController::ConfigurationController(const css::uno::Reference<css::frame::XController>& rxController) noexcept
105         : ConfigurationControllerInterfaceBase(m_aMutex)
106         , mbIsDisposed(false)
107     {
108         const SolarMutexGuard aSolarGuard;
109     

** CID 1520593:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/framework/configuration/ConfigurationController.cxx: 104 in sd::framework::ConfigurationController::ConfigurationController(const com::sun::star::uno::Reference<com::sun::star::frame::XController> &)()


________________________________________________________________________________________________________
*** CID 1520593:  Error handling issues  (UNCAUGHT_EXCEPT)
/sd/source/ui/framework/configuration/ConfigurationController.cxx: 104 in sd::framework::ConfigurationController::ConfigurationController(const com::sun::star::uno::Reference<com::sun::star::frame::XController> &)()
98         if (mxController.is())
99             mxController->unlock();
100     }
101     
102     //===== ConfigurationController ===============================================
103     
>>>     CID 1520593:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the exception specification "noexcept" doesn't allow it to be thrown. This will result in a call to terminate().
104     ConfigurationController::ConfigurationController(const css::uno::Reference<css::frame::XController>& rxController) noexcept
105         : ConfigurationControllerInterfaceBase(m_aMutex)
106         , mbIsDisposed(false)
107     {
108         const SolarMutexGuard aSolarGuard;
109     

** CID 1520592:  Control flow issues  (DEADCODE)
/sdext/source/pdfimport/filterdet.cxx: 361 in pdfi::PDFDetector::detect(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()


________________________________________________________________________________________________________
*** CID 1520592:  Control flow issues  (DEADCODE)
/sdext/source/pdfimport/filterdet.cxx: 361 in pdfi::PDFDetector::detect(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &)()
355                 aOutFilterName = "draw_pdf_addstream_import";
356             else if ( aEmbedMimetype == "application/vnd.oasis.opendocument.spreadsheet" )
357                 aOutFilterName = "calc_pdf_addstream_import";
358         }
359     
360         if (!bSuccess)
>>>     CID 1520592:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString();".
361             return OUString();
362     
363         if (!aOutFilterName.isEmpty())
364         {
365             if( nFilterNamePos == -1 )
366             {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DBLEe_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJibDTwS1ri2eHuKSxCVRT3Bgb90BPwSMsH9r2Do8BDNoCq70JgxRm0AUKASBQBeDrB-2BHQa3HNkciVSiVxwJMryx3QkrT1CtHUDIMt3rTGSDoOm5Co6o0zoL1Y90Otz0bb1eVYSKRlzZiH5gnWBSnI4zYgVj8eYyaf8sMQUjhSga6E-3D



More information about the LibreOffice mailing list