New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Aug 28 12:12:14 UTC 2022


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.
7 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 1512438:  Null pointer dereferences  (REVERSE_INULL)
/sd/source/ui/view/viewshel.cxx: 773 in sd::ViewShell::HandleScrollCommand(const CommandEvent &, sd::Window *)()


________________________________________________________________________________________________________
*** CID 1512438:  Null pointer dereferences  (REVERSE_INULL)
/sd/source/ui/view/viewshel.cxx: 773 in sd::ViewShell::HandleScrollCommand(const CommandEvent &, sd::Window *)()
767     
768                 if (pData->meEventType == GestureEventZoomType::Update)
769                 {
770                     double deltaBetweenEvents = (pData->mfScaleDelta - mfLastZoomScale) / mfLastZoomScale;
771                     mfLastZoomScale = pData->mfScaleDelta;
772     
>>>     CID 1512438:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pData" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
773                     if (pData != nullptr && !GetDocSh()->IsUIActive() && !xSlideShowController.is())
774                     {
775                         const ::tools::Long nOldZoom = GetActiveWindow()->GetZoom();
776                         ::tools::Long nNewZoom;
777                         Point aOldMousePos = GetActiveWindow()->PixelToLogic(rCEvt.GetMousePosPixel());
778     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DRDQ-_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJizWqLmiVLWnewzC1BvGEKz1Bu0zbG6psv0MzTnMitVkmsuyFiwjubmKxdNIMAgchSHY4NHHVPusaOuld0Z0AaF7A-2FLMxM4d1gjCFYVbVz5tfFTPRGiX5DvZbrn0tN49V-2FpHid-2F3a4dz0TydB3nYUJwZD-2BSm84D-2FotB4U44eoUgxQ-3D



More information about the LibreOffice mailing list