Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
4 new defect(s) introduced to LibreOffice found with Coverity Scan.
40 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 4 of 4 defect(s)
** CID 1371771: Error handling issues (UNCAUGHT_EXCEPT)
/xmloff/source/core/xmlimp.cxx: 421 in SvXMLImport::SvXMLImport(const
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &, const rtl::OUString &,
SvXMLImportFlags)()
________________________________________________________________________________________________________
*** CID 1371771: Error handling issues (UNCAUGHT_EXCEPT)
/xmloff/source/core/xmlimp.cxx: 421 in SvXMLImport::SvXMLImport(const
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &, const rtl::OUString &,
SvXMLImportFlags)()
415 {
416 mxEventListener.set(new SvXMLImportEventListener(this));
417 mxModel->addEventListener(mxEventListener);
418 }
419 }
420
CID 1371771: Error handling issues (UNCAUGHT_EXCEPT)
An exception of type "com::sun::star::uno::DeploymentException" is thrown but the throw
list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which
usually calls terminate().
421 SvXMLImport::SvXMLImport(
422 const css::uno::Reference< css::uno::XComponentContext >& xContext,
423 OUString const & implementationName, SvXMLImportFlags nImportFlags ) throw ()
424 : mpImpl( new SvXMLImport_Impl(xContext, implementationName) ),
425 mpNamespaceMap( new SvXMLNamespaceMap ),
426
** CID 1371770: Error handling issues (UNCAUGHT_EXCEPT)
/connectivity/source/drivers/firebird/Connection.cxx: 852 in
connectivity::firebird::Connection::documentEventOccured(const
com::sun::star::document::DocumentEvent &)()
________________________________________________________________________________________________________
*** CID 1371770: Error handling issues (UNCAUGHT_EXCEPT)
/connectivity/source/drivers/firebird/Connection.cxx: 852 in
connectivity::firebird::Connection::documentEventOccured(const
com::sun::star::document::DocumentEvent &)()
846 catch (const SQLException& e)
847 {
848 WrappedTargetException aExceptionWrapper;
849 aExceptionWrapper.Context = e.Context;
850 aExceptionWrapper.Message = e.Message;
851 aExceptionWrapper.TargetException <<= e;
CID 1371770: Error handling issues (UNCAUGHT_EXCEPT)
An exception of type "com::sun::star::lang::WrappedTargetException" is thrown.
852 throw WrappedTargetException( aExceptionWrapper );
853 }
854
855
856 Reference< XStream >
xDBStream(m_xEmbeddedStorage->openStreamElement(our_sFBKLocation,
857 ElementModes::WRITE));
** CID 1371769: (DEADCODE)
/vcl/backendtest/outputdevice/common.cxx: 38 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
/vcl/backendtest/outputdevice/common.cxx: 44 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
/vcl/backendtest/outputdevice/common.cxx: 50 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
________________________________________________________________________________________________________
*** CID 1371769: (DEADCODE)
/vcl/backendtest/outputdevice/common.cxx: 38 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
32 Color aColor = pAccess->GetPixel(y, x);
33 int nColorDelta = deltaColor(aColor, aExpected);
34
35 if (nColorDelta <= nColorDeltaThresh)
36 {
37 if (bColorize)
CID 1371769: (DEADCODE)
Execution cannot reach the expression "pAccess->SetPixel(y, x, BitmapColor
const(Color(65280U)))" inside this statement: "pAccess->SetPixel(y, x, Bit...".
38 pAccess->SetPixel(y, x, Color(COL_LIGHTGREEN));
39 }
40 else if (bQuirkMode)
41 {
42 nNumberOfQuirks++;
43 if (bColorize)
/vcl/backendtest/outputdevice/common.cxx: 44 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
38 pAccess->SetPixel(y, x, Color(COL_LIGHTGREEN));
39 }
40 else if (bQuirkMode)
41 {
42 nNumberOfQuirks++;
43 if (bColorize)
CID 1371769: (DEADCODE)
Execution cannot reach the expression "pAccess->SetPixel(y, x, BitmapColor
const(Color(16776960U)))" inside this statement: "pAccess->SetPixel(y, x, Bit...".
44 pAccess->SetPixel(y, x, Color(COL_YELLOW));
45 }
46 else
47 {
48 nNumberOfErrors++;
49 if (bColorize)
/vcl/backendtest/outputdevice/common.cxx: 50 in
vcl::test::<unnamed>::checkValue(vcl::ScopedBitmapAccess<BitmapWriteAccess, Bitmap,
(&Bitmap::AcquireWriteAccess)> &, int, int, Color, int &, int &, bool, int)()
44 pAccess->SetPixel(y, x, Color(COL_YELLOW));
45 }
46 else
47 {
48 nNumberOfErrors++;
49 if (bColorize)
CID 1371769: (DEADCODE)
Execution cannot reach the expression "pAccess->SetPixel(y, x, BitmapColor
const(Color(16711680U)))" inside this statement: "pAccess->SetPixel(y, x, Bit...".
50 pAccess->SetPixel(y, x, Color(COL_LIGHTRED));
51 }
52 }
53
54 TestResult checkRect(Bitmap& rBitmap, int aLayerNumber, Color aExpectedColor)
55 {
** CID 1371768: Control flow issues (DEADCODE)
/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx: 760 in
jfw_plugin_startJavaVirtualMachine(const JavaInfo *, const JavaVMOption *, int, JavaVM_ **, JNIEnv_
**)()
________________________________________________________________________________________________________
*** CID 1371768: Control flow issues (DEADCODE)
/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx: 760 in
jfw_plugin_startJavaVirtualMachine(const JavaInfo *, const JavaVMOption *, int, JavaVM_ **, JNIEnv_
**)()
754 if (opt.startsWith("-Xss")) {
755 hasStackSize = true;
756 }
757 options.push_back(Option(opt, arOptions[i].extraInfo));
758 }
759 if (addForceInterpreted) {
CID 1371768: Control flow issues (DEADCODE)
Execution cannot reach the expression
"options.push_back(jfw_plugin_startJavaVirtualMachine(JavaInfo const *, JavaVMOption const *,
int, JavaVM_ **, JNIEnv_ **)::Option (instance 42280)(rtl::OString const("-Xint",
rtl::libreoffice_internal::Dummy({})), NULL))" inside this statement:
"options.push_back(jfw_plugi...".
760 options.push_back(Option("-Xint", nullptr));
761 }
762 if (!hasStackSize) {
763 #if defined LINUX && (defined X86 || defined X86_64)
764 // At least OpenJDK 1.8.0's os::workaround_expand_exec_shield_cs_limit
765 // (hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp) can mmap an rwx
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy1PQRD8Fi-2BH21a-2Bsra7pDZq6a3kAI7taV8CNnlHxsTEY2fqMrGr09POfofOoS5lOpROHdQgi-2BbwoE39oQCzWpitp3zktPU5P1p8ze9rlCcWqyObhumC8G4tEE5Lukf0qxjpGZ7rglZRoW9q58ZD7aZlrkJ2O6369HpAFlO4gG-2FjI-3D
To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy1PQRD8Fi-2BH21a-2Bsra7pDZvMPw3xYJ2wz-2F7o6i20p2Q22HgxdnPgjRfRX7joQtGvJReFE2ST-2FaoBphsMXs3WL6MTfWHDQI3B-2BO496zGJg-2B24v-2FD-2FpLQ0pLpBAHq49rweQ4oU6AP4jSEECpVU7IpHaG7qTD4OIBDRSou-2BDZuQIgek-3D
Context
- New Defects reported by Coverity Scan for LibreOffice · scan-admin
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.