New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Mar 6 02:02:42 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.
262 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 1502882:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1502882:  Null pointer dereferences  (FORWARD_NULL)
/vcl/jsdialog/jsdialogbuilder.cxx: 721 in JSInstanceBuilder::RememberWidget(rtl::OString, weld::Widget *)()
715                 if (aWidgetIt != aWindowIt->second.end())
716                 {
717                     unsigned long long int nIndex = nNotRepeatIndex++;
718                     // found duplicated it -> add some number to the id and apply to the widget
719                     sId = sId + OString::number(nIndex);
720                     SalInstanceWidget* pSalWidget = dynamic_cast<SalInstanceWidget*>(pWidget);
>>>     CID 1502882:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pSalWidget" to "getWidget", which dereferences it.
721                     vcl::Window* pVclWidget = pSalWidget->getWidget();
722                     pVclWidget->set_id(pVclWidget->get_id() + OUString::number(nIndex));
723                 }
724             }
725         }
726     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DYvYr_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi7-2B-2BNxcCkBVT-2Bqh-2BVThl9lLGOGlV8NZwa2xgxyhJbOCSmQ-2FkNZ-2FGkoxffsZTfBbyq0EYPSHHFnaLSRPVGhVTUelcAMl1jmipLu5AKvKa59RPLK0eYeDe6iTrcOmJ1SMwEddGtMKpl-2Be00Mf-2BjdpDSEKuSIfiBjuQHxFa40u7ahMc-3D



More information about the LibreOffice mailing list