New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Oct 1 00:13:47 UTC 2016


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.
10 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 1373442:  Uninitialized members  (UNINIT_CTOR)
/svx/source/dialog/graphctl.cxx: 76 in GraphCtrl::GraphCtrl(vcl::Window *, long)()


________________________________________________________________________________________________________
*** CID 1373442:  Uninitialized members  (UNINIT_CTOR)
/svx/source/dialog/graphctl.cxx: 76 in GraphCtrl::GraphCtrl(vcl::Window *, long)()
70     {
71         pUserCall = new GraphCtrlUserCall( *this );
72         aUpdateIdle.SetPriority( SchedulerPriority::LOWEST );
73         aUpdateIdle.SetIdleHdl( LINK( this, GraphCtrl, UpdateHdl ) );
74         aUpdateIdle.Start();
75         EnableRTL( false );
>>>     CID 1373442:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mbInIdleUpdate" is not initialized in this constructor nor in any functions that it calls.
76     }
77     
78     VCL_BUILDER_DECL_FACTORY(GraphCtrl)
79     {
80         WinBits nWinStyle = 0;
81         OString sBorder = VclBuilder::extractCustomProperty(rMap);

** CID 1373441:  Incorrect expression  (ASSERT_SIDE_EFFECT)
/i18npool/qa/cppunit/test_breakiterator.cxx: 540 in TestBreakIterator::testWordBoundaries()()


________________________________________________________________________________________________________
*** CID 1373441:  Incorrect expression  (ASSERT_SIDE_EFFECT)
/i18npool/qa/cppunit/test_breakiterator.cxx: 540 in TestBreakIterator::testWordBoundaries()()
534                 do
535                 {
536                     CPPUNIT_ASSERT(i < SAL_N_ELEMENTS(aExpected));
537                     aBounds = m_xBreak->getWordBoundary(aTest, nPos, aLocale,
538                         i18n::WordType::DICTIONARY_WORD, true);
539                     CPPUNIT_ASSERT_EQUAL(aExpected[i++], aBounds.startPos);
>>>     CID 1373441:  Incorrect expression  (ASSERT_SIDE_EFFECT)
>>>     Argument "i++" of assertEquals() has a side effect.  The containing function might work differently in a non-debug build.
540                     CPPUNIT_ASSERT_EQUAL(aExpected[i++], aBounds.endPos);
541                     nPos = aBounds.endPos;
542                 }
543                 while (nPos++ < aTest.getLength());
544                 CPPUNIT_ASSERT_EQUAL(SAL_N_ELEMENTS(aExpected), i);
545             }


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyAye-2F8u9A-2FzK1ycw-2F-2FYd4Cy3p0MN9ZjblAu9vGZPqhylWxj1RukIl9lu3ZyXzWJyhbVv3WQk-2BBNzGLztoEtX8oU5ayPmQlMqVUQjL4QgyIYBntsqfiovo6CmQkNv8oKyiTDm2sasof0BPpdFKZ6a4co8Jw3seoboHoVJA3qvhYGM-3D

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyAye-2F8u9A-2FzK1ycw-2F-2FYd4CzbhPOQ-2B38xn-2BBAu51g6dxdUcNb09tOFxtUSpI-2BD-2FodL3AUlPOUsCwG5a36-2FE3HeAmA4aklNF-2FEcIy7blZE7CdrejqTztW5iuDcUcb8nOxZZj-2B3NhIfSIOQlM3qKIVWSl520RJLS80Vfl5WlYBPNDCM-3D



More information about the LibreOffice mailing list