New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Mar 31 16:20:50 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.
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 1524623:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1524623:  Null pointer dereferences  (FORWARD_NULL)
/sc/source/core/data/drwlayer.cxx: 1939 in ScDrawLayer::CopyFromClip(ScDrawLayer*, short, const tools::Rectangle &, const ScAddress &, const tools::Rectangle &)()
1933             if (bObjectInArea && (pOldObject->GetLayer() != SC_LAYER_INTERN)
1934                 && !IsNoteCaption(pOldObject))
1935             {
1936                 // Copy style sheet
1937                 auto pStyleSheet = pOldObject->GetStyleSheet();
1938                 if (pStyleSheet && !bSameDoc)
>>>     CID 1524623:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pClipDoc" to "GetStyleSheetPool", which dereferences it.
1939                     pDoc->GetStyleSheetPool()->CopyStyleFrom(pClipDoc->GetStyleSheetPool(),
1940                         pStyleSheet->GetName(), pStyleSheet->GetFamily(), true);
1941     
1942                 // Clone to target SdrModel
1943                 rtl::Reference<SdrObject> pNewObject(pOldObject->CloneSdrObject(*this));
1944     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DfDi0_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiL9Vj-2BAun7alxecPVYX7QH7Z800rjQglVelCn0CFInNPaxR4DmXOuF5Ny-2BpmFqn72WgubEJ0vveoMOLPuq7AmQma658V8lrEYAEP50u0GreOsFY1GSSTROuGY6-2FKAabCrXS3luXKt3EbqTj2yv3-2FDg1KQ-2F-2FyNskObwiq03mnefW6nVNZ0TcSv9cvDoRTbqiit



More information about the LibreOffice mailing list