New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Fri Jan 8 19:14:36 UTC 2021
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.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 1471704: Memory - corruptions (OVERLAPPING_COPY)
/tools/source/generic/bigint.cxx: 84 in BigInt::Normalize()()
________________________________________________________________________________________________________
*** CID 1471704: Memory - corruptions (OVERLAPPING_COPY)
/tools/source/generic/bigint.cxx: 84 in BigInt::Normalize()()
78 while ( nLen > 1 && nNum[nLen-1] == 0 )
79 nLen--;
80
81 if ( nLen < 3 )
82 {
83 if ( nLen < 2 )
>>> CID 1471704: Memory - corruptions (OVERLAPPING_COPY)
>>> Assigning "(*this).nNum[0]" to "(*this).nVal", which have overlapping memory locations and different types.
84 nVal = nNum[0];
85 else if ( nNum[1] & 0x8000 )
86 return;
87 else
88 nVal = (static_cast<sal_Int32>(nNum[1]) << 16) + nNum[0];
89
** CID 1471703: Uninitialized members (UNINIT_CTOR)
/vcl/jsdialog/jsdialogbuilder.cxx: 902 in JSMessageDialog::JSMessageDialog(MessageDialog *, VclPtr<vcl::Window>, SalInstanceBuilder *, bool)()
________________________________________________________________________________________________________
*** CID 1471703: Uninitialized members (UNINIT_CTOR)
/vcl/jsdialog/jsdialogbuilder.cxx: 902 in JSMessageDialog::JSMessageDialog(MessageDialog *, VclPtr<vcl::Window>, SalInstanceBuilder *, bool)()
896 {
897 if (aContentWindow && aContentWindow->IsDisableIdleNotify())
898 {
899 pDialog->AddEventListener(LINK(this, JSMessageDialog, on_window_event));
900 m_bNotifyCreated = false;
901 }
>>> CID 1471703: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "m_bNotifyCreated" is not initialized in this constructor nor in any functions that it calls.
902 }
903
904 void JSMessageDialog::set_primary_text(const OUString& rText)
905 {
906 SalInstanceMessageDialog::set_primary_text(rText);
907 notifyDialogState();
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3Di1Z4_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJirS80j2TCi66gpVYqK94sirIPxuWlUVTLNYaxnyz4pOpb5gzllHUg5YCpefgIfnURmE3IwWBpCfmjcneJinwYOUuiInVHApG4SQRVGEXIFL6tlre7x0VJgPMpyTR1RnNy-2FVG0p5T5VwkmWUt6RuBTUpeWlle5x7xhBbPrGGMF0bt2nbFeoXoUjz0Tqqms06kS
More information about the LibreOffice
mailing list