New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Oct 1 17:37:44 UTC 2023


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.
4 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 1547033:    (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1547033:    (FORWARD_NULL)
/filter/source/pdf/impdialog.cxx: 942 in ImpPDFTabGeneralPage::TogglePDFVersionOrUniversalAccessibilityHandle(weld::Toggleable &)()
936     
937         // set the security page status (and its controls as well)
938         ImpPDFTabSecurityPage* pSecPage = mpParent ? mpParent->getSecurityPage() : nullptr;
939         if (pSecPage)
940             pSecPage->ImplPDFASecurityControl(!bIsPDFA);
941     
>>>     CID 1547033:    (FORWARD_NULL)
>>>     Passing null pointer "this->mpParent->maConfigItem" to "IsReadOnly", which dereferences it.
942         mxCbTaggedPDF->set_sensitive(
943             !bIsPDFA && !bIsPDFUA && !mpParent->maConfigItem.IsReadOnly("UseTaggedPDF"));
944         mxRbPDFAVersion->set_sensitive(
945             bIsPDFA && !mpParent->maConfigItem.IsReadOnly("SelectPdfVersion"));
946     
947         if (bIsPDFA || bIsPDFUA)
/filter/source/pdf/impdialog.cxx: 944 in ImpPDFTabGeneralPage::TogglePDFVersionOrUniversalAccessibilityHandle(weld::Toggleable &)()
938         ImpPDFTabSecurityPage* pSecPage = mpParent ? mpParent->getSecurityPage() : nullptr;
939         if (pSecPage)
940             pSecPage->ImplPDFASecurityControl(!bIsPDFA);
941     
942         mxCbTaggedPDF->set_sensitive(
943             !bIsPDFA && !bIsPDFUA && !mpParent->maConfigItem.IsReadOnly("UseTaggedPDF"));
>>>     CID 1547033:    (FORWARD_NULL)
>>>     Passing null pointer "this->mpParent->maConfigItem" to "IsReadOnly", which dereferences it.
944         mxRbPDFAVersion->set_sensitive(
945             bIsPDFA && !mpParent->maConfigItem.IsReadOnly("SelectPdfVersion"));
946     
947         if (bIsPDFA || bIsPDFUA)
948         {
949             // store the users selection of subordinate controls and set required PDF/A values
/filter/source/pdf/impdialog.cxx: 993 in ImpPDFTabGeneralPage::TogglePDFVersionOrUniversalAccessibilityHandle(weld::Toggleable &)()
987         }
988         else if (mpParent)
989         {
990             mxCbExportBookmarks->set_active(mpParent->mbExportBookmarksUserSelection);
991             mxCbUseReferenceXObject->set_active(mpParent->mbUseReferenceXObjectUserSelection);
992         }
>>>     CID 1547033:    (FORWARD_NULL)
>>>     Passing null pointer "this->mpParent->maConfigItem" to "IsReadOnly", which dereferences it.
993         mxCbExportBookmarks->set_sensitive(
994             !bIsPDFUA && !mpParent->maConfigItem.IsReadOnly("ExportBookmarks"));
995         mxCbUseReferenceXObject->set_sensitive(!bIsPDFUA);
996     
997         ImpPDFTabOpnFtrPage *const pOpenPage(mpParent ? mpParent->getOpenPage() : nullptr);
998         if (pOpenPage)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DoQbI_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiJYghQPBp2QpoePK0lIKEfF9lRNOVIs9XkB-2FVguAgcsgc2K0MOORfF0ji4YfBwPiUyGlVuyJAkN0qCXhLgGjRH1Xzn-2FIeZII-2Bs1rPq2k6fTr4CuvnVvZgZLaRGHh-2FFkgQ3eXB3OojPT4c1-2BOt-2FHt358YyVx5HHTQg1HYoPijVIto-3D



More information about the LibreOffice mailing list