New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun May 30 03:30:11 UTC 2021


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.
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 2 of 2 defect(s)


** CID 1485136:  Control flow issues  (UNREACHABLE)
/vcl/inc/unx/gtk/gtkdata.hxx: 179 in surface_get_device_position(_GdkWindow *, _GdkDevice *, double &, double &, GdkModifierType *)()


________________________________________________________________________________________________________
*** CID 1485136:  Control flow issues  (UNREACHABLE)
/vcl/inc/unx/gtk/gtkdata.hxx: 179 in surface_get_device_position(_GdkWindow *, _GdkDevice *, double &, double &, GdkModifierType *)()
173                                                pMask);
174     #else
175         int nX(x), nY(y);
176         return gdk_window_get_device_position(pSurface, pDevice,
177                                                &nX, &nY,
178                                                pMask);
>>>     CID 1485136:  Control flow issues  (UNREACHABLE)
>>>     This code cannot be reached: "x = nX;".
179         x = nX;
180         y = nY;
181     #endif
182     }
183     
184     inline GdkGLContext* surface_create_gl_context(GdkSurface* pSurface)

** CID 1476301:  Null pointer dereferences  (NULL_RETURNS)
/starmath/source/edit.cxx: 715 in SmEditTextWindow::UpdateStatus(bool)()


________________________________________________________________________________________________________
*** CID 1476301:  Null pointer dereferences  (NULL_RETURNS)
/starmath/source/edit.cxx: 715 in SmEditTextWindow::UpdateStatus(bool)()
709     void SmEditTextWindow::UpdateStatus(bool bSetDocModified)
710     {
711         SmModule *pMod = SM_MOD();
712         if (pMod && pMod->GetConfig()->IsAutoRedraw())
713             Flush();
714         if (bSetDocModified)
>>>     CID 1476301:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "this->mrEditWindow->GetDoc()" when calling "SetModified". (The dereference happens because this is a virtual function call.)
715             mrEditWindow.GetDoc()->SetModified();
716     
717         static_cast<SmEditEngine*>(GetEditEngine())->executeZoom(GetEditView());
718     }
719     
720     void SmEditWindow::UpdateStatus(bool bSetDocModified)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DqfrD_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJib67kE6CcT6XwPlBxQ6WdE2CWkl74z2rbx828MAzkDpILa7GkJghj0nDEYLTJ3P5mlK6yn-2FXvzVV-2FXdvY7KvCCoIFcT7cS-2BG-2B-2BTrQGKDbxrka0FNbG0I7z3CDZ02LKYQQ3wxz3VCi8kxSaw001O9trBc15a9k7oWbNkkRp95d9wc-3D



More information about the LibreOffice mailing list