New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Apr 14 05:42:54 UTC 2024


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
2 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 2 of 2 defect(s)


** CID 1596323:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1596323:  Null pointer dereferences  (NULL_RETURNS)
/sw/source/core/text/widorp.cxx: 482 in WidowsAndOrphans::FindWidows(SwTextFrame *, SwTextMargin &)()
476             if( bKeep && pFrame->IsInSct() && (
477                     rAttr.GetKeepType() == css::text::ParagraphHyphenationKeepType::SPREAD ||
478                     rAttr.GetKeepType() == css::text::ParagraphHyphenationKeepType::PAGE ) )
479             {
480                 const SwSectionFrame* const pSct = pFrame->FindSctFrame();
481                 // multi-column section
>>>     CID 1596323:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pFrame->FindColFrame()" when calling "GetNext".
482                 if ( pSct->Lower()->IsColumnFrame() && pSct->Lower()->GetNext()
483                      // and not in the last column
484                      && !pFrame->FindColFrame()->GetNext() )
485                 {
486                     bKeep = false;
487                 }

** CID 1596322:  Resource leaks  (RESOURCE_LEAK)
/svgio/source/svgreader/svgfeblendnode.cxx: 158 in svgio::svgreader::SvgFeBlendNode::apply(drawinglayer::primitive2d::Primitive2DContainer &, const svgio::svgreader::SvgFilterNode *) const()


________________________________________________________________________________________________________
*** CID 1596322:  Resource leaks  (RESOURCE_LEAK)
/svgio/source/svgreader/svgfeblendnode.cxx: 158 in svgio::svgreader::SvgFeBlendNode::apply(drawinglayer::primitive2d::Primitive2DContainer &, const svgio::svgreader::SvgFilterNode *) const()
152     
153             const drawinglayer::primitive2d::Primitive2DReference xRef(
154                 new drawinglayer::primitive2d::BitmapPrimitive2D(
155                     aResBmpEx, basegfx::utils::createScaleTranslateB2DHomMatrix(
156                                    aBaseRect.getRange(), aBaseRect.getMinimum())));
157             rTarget = drawinglayer::primitive2d::Primitive2DContainer{ xRef };
>>>     CID 1596322:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "pScreenBlendFilter" going out of scope leaks the storage it points to.
158         }
159     
160         pParent->addGraphicSourceToMapper(maResult, rTarget);
161     }
162     
163     } // end of namespace svgio::svgreader
164     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3Dsnv6_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGtuw314jrPBVWaQyrmAPGzU9vOtqtRrAdjw-2B4Z3l-2FSG3YnSY-2FhLDqo1J6WFHB9nVcdNzKwHNFSf-2BmzFHCVwLOh9kkBXRnPUFoHB7odZCx4jG9nXO-2B1xDw5jLnfdhNJ-2BKC8ZYR1i8jWUXdSOWyfzNnvptzS5PX-2BItrQHYQ1TtuSOAk-3D



More information about the LibreOffice mailing list