New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Wed Dec 9 06:18:39 UTC 2020
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 1470573: Null pointer dereferences (FORWARD_NULL)
/sw/source/core/fields/usrfld.cxx: 219 in SwUserFieldType::SwClientNotify(const SwModify &, const SfxHint &)()
________________________________________________________________________________________________________
*** CID 1470573: Null pointer dereferences (FORWARD_NULL)
/sw/source/core/fields/usrfld.cxx: 219 in SwUserFieldType::SwClientNotify(const SwModify &, const SfxHint &)()
213 return m_aName;
214 }
215
216 void SwUserFieldType::SwClientNotify(const SwModify&, const SfxHint& rHint)
217 {
218 auto pLegacy = dynamic_cast<const sw::LegacyModifyHint*>(&rHint);
>>> CID 1470573: Null pointer dereferences (FORWARD_NULL)
>>> Dereferencing null pointer "pLegacy".
219 if(!pLegacy->m_pOld && !pLegacy->m_pNew)
220 m_bValidValue = false;
221
222 CallSwClientNotify(rHint);
223 // update input fields that might be connected to the user field
224 if (!IsModifyLocked())
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DxKfa_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJikHIOtypVsnWYw8Ja5YcpnHz-2FoPOBSXHj-2BQak39AS7nclvjOlZIw9JtnbDrvdOqgBpqraftoBxN71aj1rColNKkHjfTdeo05EsSSrkZ2q8ICznc1SGklYoN-2FCz5a0rd5VgMsCSPQTS-2Fa-2FqAIGn49iGQktpn1eI3a-2BC3SDmadfiR4HNjsxyYGnNtrpQe76kQzh
More information about the LibreOffice
mailing list