New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Apr 30 16:27:58 UTC 2021


Hi,

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

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


** CID 1478001:  Null pointer dereferences  (REVERSE_INULL)
/vcl/unx/generic/gdi/salvd.cxx: 130 in X11SalVirtualDevice::X11SalVirtualDevice(const SalGraphics *, long &, long &, DeviceFormat, const SystemGraphicsData *, std::unique_ptr<X11SalGraphics, std::default_delete<X11SalGraphics>>)()


________________________________________________________________________________________________________
*** CID 1478001:  Null pointer dereferences  (REVERSE_INULL)
/vcl/unx/generic/gdi/salvd.cxx: 130 in X11SalVirtualDevice::X11SalVirtualDevice(const SalGraphics *, long &, long &, DeviceFormat, const SystemGraphicsData *, std::unique_ptr<X11SalGraphics, std::default_delete<X11SalGraphics>>)()
124             bExternPixmap_ = true;
125         }
126         else
127         {
128             nDX_ = nDX;
129             nDY_ = nDY;
>>>     CID 1478001:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pGraphics" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
130             m_nXScreen = pGraphics ? static_cast<X11SalGraphics const *>(pGraphics)->GetScreenNumber() :
131                                      vcl_sal::getSalDisplay(GetGenericUnixSalData())->GetDefaultXScreen();
132             hDrawable_ = limitXCreatePixmap( GetXDisplay(),
133                                              pDisplay_->GetDrawable( m_nXScreen ),
134                                              nDX_, nDY_,
135                                              GetDepth() );


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3Dv0j9_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiR9y3GSOtackX7-2FbTMWD53A1TjnpzgoighLs7brjfqYXwDAz8HCw7-2BObBObXVrXvvMVALA1qzXXBJ-2FcCzQZ-2FkTx9Cohnbie4C5Z5NmGiLT6u01pSdpvDP2B3a1lZZbHpgQjEmQ21iB55owHL5tusebfQ0fZFXUOJfiJJVGz-2Bx0XQ-3D



More information about the LibreOffice mailing list