New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Aug 26 14:49:18 PDT 2015


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

5 new defect(s) introduced to LibreOffice found with Coverity Scan.
6 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 5 of 5 defect(s)


** CID 1320474:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 182 in OpenGLTexture::OpenGLTexture(int, int, int, int)()


________________________________________________________________________________________________________
*** CID 1320474:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 182 in OpenGLTexture::OpenGLTexture(int, int, int, int)()
176     }
177     
178     OpenGLTexture::OpenGLTexture( int nX, int nY, int nWidth, int nHeight ) :
179         maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
180     {
181         mpImpl = new ImplOpenGLTexture( nX, nY, nWidth, nHeight );
>>>     CID 1320474:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnSlotNumber" is not initialized in this constructor nor in any functions that it calls.
182     }
183     
184     OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData ) :
185         maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
186     {
187         mpImpl = new ImplOpenGLTexture( nWidth, nHeight, nFormat, nType, pData );

** CID 1320473:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 188 in OpenGLTexture::OpenGLTexture(int, int, int, int, unsigned char *)()


________________________________________________________________________________________________________
*** CID 1320473:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 188 in OpenGLTexture::OpenGLTexture(int, int, int, int, unsigned char *)()
182     }
183     
184     OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData ) :
185         maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
186     {
187         mpImpl = new ImplOpenGLTexture( nWidth, nHeight, nFormat, nType, pData );
>>>     CID 1320473:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnSlotNumber" is not initialized in this constructor nor in any functions that it calls.
188     }
189     
190     OpenGLTexture::OpenGLTexture( const OpenGLTexture& rTexture )
191     {
192         maRect = rTexture.maRect;
193         mpImpl = rTexture.mpImpl;

** CID 1320472:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 176 in OpenGLTexture::OpenGLTexture(int, int, bool)()


________________________________________________________________________________________________________
*** CID 1320472:  Uninitialized members  (UNINIT_CTOR)
/vcl/opengl/texture.cxx: 176 in OpenGLTexture::OpenGLTexture(int, int, bool)()
170     }
171     
172     OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, bool bAllocate ) :
173         maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
174     {
175         mpImpl = new ImplOpenGLTexture( nWidth, nHeight, bAllocate );
>>>     CID 1320472:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnSlotNumber" is not initialized in this constructor nor in any functions that it calls.
176     }
177     
178     OpenGLTexture::OpenGLTexture( int nX, int nY, int nWidth, int nHeight ) :
179         maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
180     {
181         mpImpl = new ImplOpenGLTexture( nX, nY, nWidth, nHeight );

** CID 1320471:  Program hangs  (INFINITE_LOOP)
/vcl/qa/cppunit/timer.cxx: 272 in TimerTest::testMultiAutoTimers()()


________________________________________________________________________________________________________
*** CID 1320471:  Program hangs  (INFINITE_LOOP)
/vcl/qa/cppunit/timer.cxx: 272 in TimerTest::testMultiAutoTimers()()
266     
267             const auto start = std::chrono::high_resolution_clock::now();
268             AutoTimerCount aCountX(nDurationMsX, nCountX);
269             AutoTimerCount aCountY(nDurationMsY, nCountY);
270     
271             AutoTimerCount aCount(nDurationMs, nCount);
>>>     CID 1320471:  Program hangs  (INFINITE_LOOP)
>>>     If "nCount < 5" is initially true then it will remain true.
272             while (nCount < nEventsCount) {
273                 Application::Yield();
274             }
275     
276             const auto end = std::chrono::high_resolution_clock::now();
277             dur = std::chrono::duration<double, std::milli>(end - start).count();

** CID 1320470:  Null pointer dereferences  (FORWARD_NULL)
/sfx2/source/dialog/taskpane.cxx: 259 in sfx2::TaskPaneWrapper::TaskPaneWrapper(vcl::Window *, unsigned short, SfxBindings *, SfxChildWinInfo *)()


________________________________________________________________________________________________________
*** CID 1320470:  Null pointer dereferences  (FORWARD_NULL)
/sfx2/source/dialog/taskpane.cxx: 259 in sfx2::TaskPaneWrapper::TaskPaneWrapper(vcl::Window *, unsigned short, SfxBindings *, SfxChildWinInfo *)()
253                 WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE));
254             SetAlignment(SfxChildAlignment::RIGHT);
255     
256             GetWindow()->SetHelpId( HID_TASKPANE_WINDOW );
257             GetWindow()->SetOutputSizePixel( Size( 300, 450 ) );
258     
>>>     CID 1320470:  Null pointer dereferences  (FORWARD_NULL)
>>>     Dynamic cast to pointer "dynamic_cast <SfxDockingWindow *>(this->GetWindow())" can return "NULL".
259             dynamic_cast<SfxDockingWindow*>(GetWindow())->Initialize(i_pInfo);
260             SetHideNotDelete( true );
261     
262             GetWindow()->Show();
263         }
264     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/libreoffice?tab=overview

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939



More information about the LibreOffice mailing list