New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Thu Jan 11 07:38:46 UTC 2024


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.
19 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 1583765:  Memory - corruptions  (BAD_FREE)


________________________________________________________________________________________________________
*** CID 1583765:  Memory - corruptions  (BAD_FREE)
/sw/source/core/txtnode/thints.cxx: 1183 in MakeTextAttr(SwDoc &, const SfxItemSet &, int, int)()
1177                             sal_Int32 nStt, sal_Int32 nEnd )
1178     {
1179         IStyleAccess& rStyleAccess = rDoc.GetIStyleAccess();
1180         const std::shared_ptr<SfxItemSet> pAutoStyle = rStyleAccess.getAutomaticStyle( rSet, IStyleAccess::AUTO_STYLE_CHAR );
1181         SwFormatAutoFormat aNewAutoFormat;
1182         aNewAutoFormat.SetStyleHandle( pAutoStyle );
>>>     CID 1583765:  Memory - corruptions  (BAD_FREE)
>>>     "MakeTextAttr" frees address of "aNewAutoFormat".
1183         SwTextAttr* pNew = MakeTextAttr( rDoc, aNewAutoFormat, nStt, nEnd );
1184         return pNew;
1185     }
1186     
1187     // delete the text attribute and unregister its item at the pool
1188     void SwTextNode::DestroyAttr( SwTextAttr* pAttr )


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3D442V_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiQVe0uTPxDqiopw-2Bjnu9uM-2FuJPMryRdazLTC4bjKBq-2FvkkxrvmRJgNdX5HLVSNJONrKqpO26p6SYuP9eq5Q0iByER-2B3OlKOOMGaSzx9LSGPKPjM4Z8hAjs10HNSwvgE3ZxNmSwEGBD4JkKadw3N5hBTUdhmk8xfXAU6gOPAWgS-2BI-3D



More information about the LibreOffice mailing list