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.
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 4 of 4 defect(s)
** CID 1427251: Uninitialized members (UNINIT_CTOR)
/connectivity/source/drivers/jdbc/JConnection.cxx: 272 in
connectivity::java_sql_Connection::java_sql_Connection(const connectivity::java_sql_Driver &)()
________________________________________________________________________________________________________
*** CID 1427251: Uninitialized members (UNINIT_CTOR)
/connectivity/source/drivers/jdbc/JConnection.cxx: 272 in
connectivity::java_sql_Connection::java_sql_Connection(const connectivity::java_sql_Driver &)()
266 ,m_pDriverClassLoader()
267 ,m_Driver_theClass(nullptr)
268 ,m_aLogger( _rDriver.getLogger() )
269 ,m_bIgnoreDriverPrivileges(true)
270 ,m_bIgnoreCurrency(false)
271 {
CID 1427251: Uninitialized members (UNINIT_CTOR)
Non-static class member "m_bParameterSubstitution" is not initialized in this constructor
nor in any functions that it calls.
272 }
273
274 java_sql_Connection::~java_sql_Connection()
275 {
276 ::rtl::Reference< jvmaccess::VirtualMachine > xTest = java_lang_Object::getVM();
277 if ( xTest.is() )
** CID 1427250: Null pointer dereferences (NULL_RETURNS)
/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx: 806 in testTdf104707_urlComment::verify()()
________________________________________________________________________________________________________
*** CID 1427250: Null pointer dereferences (NULL_RETURNS)
/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx: 806 in testTdf104707_urlComment::verify()()
800 sal_Int32 idInCommentXml = getXPath(pXmlComm,"/w:comments/w:comment[1]","id").toInt32();
801 CPPUNIT_ASSERT_EQUAL( idInDocXml, idInCommentXml );
802 }
803
804 DECLARE_OOXMLEXPORT_TEST(testTdf104707_urlComment, "tdf104707_urlComment.odt")
805 {
CID 1427250: Null pointer dereferences (NULL_RETURNS)
Assigning: "pXmlComm" = null return value from "parseExport".
806 xmlDocPtr pXmlComm = parseExport("word/comments.xml");
807 CPPUNIT_ASSERT_EQUAL(
OUString("https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0Tc8gAcas411Gi1txyZnn7YswN71V4IhbLCbQegCHHLkJYRPrHMDrO-2BOqQwP6z6D-2FO8zq48MJPziLAbATyEbwPw-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpymIwK6ENxnZuG32BrAYYwdSVvvX8Fy3IrPUyqBJAlVHyaOC2ne439PrfeyeJBkubXpOXoJ7kNW2-2BhqEMUC8xVYABOIHsyuRcSV9zb-2F6sI9XgvJE-2F0ECknP5gcEUGJs0D-2B546jqKG-2BTiqw4sBqUca5aYPzUuEJIvhawe57CWVOrbM-3D"),
getXPathContent(pXmlComm,"/w:comments/w:comment/w:p/w:hyperlink/w:r/w:t") );
808 }
809
810 DECLARE_OOXMLEXPORT_TEST(testOLEObjectinHeader, "2129393649.docx")
811 {
** CID 1427249: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/include/tools/bigint.hxx: 150 in BigInt::operator int() const()
________________________________________________________________________________________________________
*** CID 1427249: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/include/tools/bigint.hxx: 150 in BigInt::operator int() const()
144 assert(false && "out of range");
145 return 0;
146 }
147
148 inline BigInt::operator sal_Int32() const
149 {
CID 1427249: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
"this->nVal >= -2147483648 /* (sal_Int32)(-2147483647 - 1) */" is always true regardless of
the values of its operands. This occurs as the logical second operand of "&&".
150 if ( !bIsBig && nVal >= SAL_MIN_INT32 && nVal <= SAL_MAX_INT32 )
151 return (sal_Int32)nVal;
152 assert(false && "out of range");
153 return 0;
154 }
155
** CID 1427248: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/include/tools/bigint.hxx: 168 in BigInt::operator long() const()
________________________________________________________________________________________________________
*** CID 1427248: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
/include/tools/bigint.hxx: 168 in BigInt::operator long() const()
162 }
163
164 #if SAL_TYPES_SIZEOFLONG == 8
165 inline BigInt::operator long() const
166 {
167 // Clamp to int32 since long is int32 on Windows.
CID 1427248: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
"this->nVal >= -2147483648 /* (sal_Int32)(-2147483647 - 1) */" is always true regardless of
the values of its operands. This occurs as the logical second operand of "&&".
168 if ( !bIsBig && nVal >= SAL_MIN_INT32 && nVal <= SAL_MAX_INT32 )
169 return (long)nVal;
170 assert(false && "out of range");
171 return 0;
172 }
173 #endif
________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpymIwK6ENxnZuG32BrAYYwdaFxO9hO-2BVGQkKA1Lf85TrgfBPPwW3Iy0tppQYQFjx-2FipBaDmpIEY5SwOwPF4g6umocRIH3oH8sy7DH8cihyf18eQr3jILZq6M3pWrDWNMCRHnR78tI8WpDmgUFYKta2UsEW-2FhDehrzmLRbMDHHrYeA-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-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5lwWgMDuK-2FivqaohkU3M9kT-2Fww10Qt2GoaCJAOQCa0Wv4ijH4oV8jCt0XXa7QeAwh_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpymIwK6ENxnZuG32BrAYYwdSZNawNA-2B-2FWyBvsG2ceSaLrk-2FoIsOyta1MoseApc5oK1BtVK-2F-2BE8b-2FHJ7HXCgtZkdxANT37qwoge-2B0BUNV1htgN3il6QxHZDnZLsNdPJf09SW5Mog3f9Pj8kJtwowWe2CLEutCyUqPxZ6v1oX-2FL7Ih4-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.