New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Tue Dec 19 04:57:31 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.
50 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 1559313: Null pointer dereferences (NULL_RETURNS)
________________________________________________________________________________________________________
*** CID 1559313: Null pointer dereferences (NULL_RETURNS)
/sc/source/ui/view/output.cxx: 2604 in ScOutputData::AddPDFNotes()()
2598
2599 // Note title is the cell address (as on printed note pages)
2600 ScAddress aAddress( nMergeX, nMergeY, nTab );
2601 aNote.Title = aAddress.Format(ScRefFlags::VALID, mpDoc, mpDoc->GetAddressConvention());
2602
2603 // Content has to be a simple string without line breaks
>>> CID 1559313: Null pointer dereferences (NULL_RETURNS)
>>> Dereferencing a pointer that might be "nullptr" "pNote" when calling "GetText".
2604 OUString aContent = pNote->GetText();
2605 aNote.Contents = aContent.replaceAll("\n", " ");
2606
2607 pPDFData->CreateNote( aNoteRect, aNote );
2608 }
2609 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3DIL98_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi2wJbLo4SieEDO47Z86J2qHiYTc68ToGCAScYAxXsrQ6h-2Brwf6c60AtoSxv7dg3zNC3VNrGJrHkEi8HaVXIezgLnlbCqRg2htZZjGIPBKjLfR-2BoQwU5PvaUsGTj8rusn-2FAP7YVtiQp25eZ1yWzNHYG2JPfFbU6D0VEQKdEUo6uu4-3D
More information about the LibreOffice
mailing list