New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Apr 17 08:54:45 UTC 2018


Hi,

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

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


** CID 1434905:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1519 in dbaui::OTableEditorCtrl::SetPrimaryKey(bool)()


________________________________________________________________________________________________________
*** CID 1434905:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1519 in dbaui::OTableEditorCtrl::SetPrimaryKey(bool)()
1513         if( bSet )
1514         {
1515             long nIndex = FirstSelectedRow();
1516             while( nIndex != SFX_ENDOFSELECTION )
1517             {
1518                 // Set the key
>>>     CID 1434905:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1519                  std::shared_ptr<OTableRow>  pRow = (*m_pRowList)[nIndex];
1520                 OFieldDescription* pFieldDescr = pRow->GetActFieldDescr();
1521                 if(pFieldDescr)
1522                     AdjustFieldDescription(pFieldDescr,aInsertedPrimKeys,nIndex,false,true);
1523     
1524                 nIndex = NextSelectedRow();

** CID 1434904:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1283 in dbaui::OTableEditorCtrl::IsPrimaryKeyAllowed(long)()


________________________________________________________________________________________________________
*** CID 1434904:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1283 in dbaui::OTableEditorCtrl::IsPrimaryKeyAllowed(long)()
1277         // - No Memo or Image entries
1278         // - DROP is not permitted (see above) and the column is not Required (not null flag is not set).
1279         long nIndex = FirstSelectedRow();
1280          std::shared_ptr<OTableRow>  pRow;
1281         while( nIndex != SFX_ENDOFSELECTION )
1282         {
>>>     CID 1434904:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1283             pRow = (*m_pRowList)[nIndex];
1284             OFieldDescription* pFieldDescr = pRow->GetActFieldDescr();
1285             if(!pFieldDescr)
1286                 return false;
1287             else
1288             {

** CID 1434903:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1519 in dbaui::OTableEditorCtrl::SetPrimaryKey(bool)()


________________________________________________________________________________________________________
*** CID 1434903:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1519 in dbaui::OTableEditorCtrl::SetPrimaryKey(bool)()
1513         if( bSet )
1514         {
1515             long nIndex = FirstSelectedRow();
1516             while( nIndex != SFX_ENDOFSELECTION )
1517             {
1518                 // Set the key
>>>     CID 1434903:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1519                  std::shared_ptr<OTableRow>  pRow = (*m_pRowList)[nIndex];
1520                 OFieldDescription* pFieldDescr = pRow->GetActFieldDescr();
1521                 if(pFieldDescr)
1522                     AdjustFieldDescription(pFieldDescr,aInsertedPrimKeys,nIndex,false,true);
1523     
1524                 nIndex = NextSelectedRow();

** CID 1434902:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TableUndo.cxx: 170 in dbaui::OTableEditorDelUndoAct::OTableEditorDelUndoAct(dbaui::OTableEditorCtrl *)()


________________________________________________________________________________________________________
*** CID 1434902:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TableUndo.cxx: 170 in dbaui::OTableEditorDelUndoAct::OTableEditorDelUndoAct(dbaui::OTableEditorCtrl *)()
164         sal_Int32 nIndex = pOwner->FirstSelectedRow();
165          std::shared_ptr<OTableRow>  pOriginalRow;
166          std::shared_ptr<OTableRow>  pNewRow;
167     
168         while( nIndex != SFX_ENDOFSELECTION )
169         {
>>>     CID 1434902:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
170             pOriginalRow = (*pOriginalRows)[nIndex];
171             pNewRow.reset(new OTableRow( *pOriginalRow, nIndex ));
172             m_aDeletedRows.push_back( pNewRow);
173     
174             nIndex = pOwner->NextSelectedRow();
175         }

** CID 1434901:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 706 in rptui::OFieldExpressionControl::Command(const CommandEvent &)()


________________________________________________________________________________________________________
*** CID 1434901:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 706 in rptui::OFieldExpressionControl::Command(const CommandEvent &)()
700                 if ( nColId == HANDLE_ID )
701                 {
702                     bool bEnable = false;
703                     long nIndex = FirstSelectedRow();
704                     while( nIndex != SFX_ENDOFSELECTION && !bEnable )
705                     {
>>>     CID 1434901:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
706                         if ( m_aGroupPositions[nIndex] != NO_GROUP )
707                             bEnable = true;
708                         nIndex = NextSelectedRow();
709                     }
710                     VclBuilder aBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "modules/dbreport/ui/groupsortmenu.ui", "");
711                     VclPtr<PopupMenu> aContextMenu(aBuilder.get_menu("menu"));

** CID 1434900:    (UNINIT_CTOR)
/cui/source/dialogs/SignSignatureLineDialog.cxx: 69 in SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget *, com::sun::star::uno::Reference<com::sun::star::frame::XModel>)()
/cui/source/dialogs/SignSignatureLineDialog.cxx: 112 in SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget *, com::sun::star::uno::Reference<com::sun::star::frame::XModel>)()


________________________________________________________________________________________________________
*** CID 1434900:    (UNINIT_CTOR)
/cui/source/dialogs/SignSignatureLineDialog.cxx: 69 in SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget *, com::sun::star::uno::Reference<com::sun::star::frame::XModel>)()
63     
64         bool bIsSignatureLine;
65         m_xShapeProperties->getPropertyValue("IsSignatureLine") >>= bIsSignatureLine;
66         if (!bIsSignatureLine)
67         {
68             SAL_WARN("cui.dialogs", "No signature line selected!");
>>>     CID 1434900:    (UNINIT_CTOR)
>>>     Non-static class member "m_bShowSignDate" is not initialized in this constructor nor in any functions that it calls.
69             return;
70         }
71     
72         m_xBtnChooseCertificate->connect_clicked(
73             LINK(this, SignSignatureLineDialog, chooseCertificate));
74         m_xEditName->connect_changed(LINK(this, SignSignatureLineDialog, entryChanged));
/cui/source/dialogs/SignSignatureLineDialog.cxx: 112 in SignSignatureLineDialog::SignSignatureLineDialog(weld::Widget *, com::sun::star::uno::Reference<com::sun::star::frame::XModel>)()
106             m_xLabelAddComment->hide();
107             m_xEditComment->hide();
108             m_xEditComment->set_size_request(0, 0);
109         }
110     
111         ValidateFields();
>>>     CID 1434900:    (UNINIT_CTOR)
>>>     Non-static class member "m_bShowSignDate" is not initialized in this constructor nor in any functions that it calls.
112     }
113     
114     IMPL_LINK_NOARG(SignSignatureLineDialog, chooseCertificate, weld::Button&, void)
115     {
116         Reference<XDocumentDigitalSignatures> xSigner(DocumentDigitalSignatures::createWithVersion(
117             comphelper::getProcessComponentContext(), "1.2"));

** CID 1434899:    (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1434899:    (FORWARD_NULL)
/sw/source/core/crsr/trvltbl.cxx: 599 in GotoNextTable(SwPaM &, const SwMoveFnCollection &, bool)()
593             {
594                 if( &fnPosTable == &fnMoveForward ) // at the beginning?
595                 {
596                     if( !lcl_FindNextCell( aIdx, bInReadOnly ))
597                     {
598                         // skip table
>>>     CID 1434899:    (FORWARD_NULL)
>>>     Passing null pointer "pTableNd" to "EndOfSectionNode", which dereferences it.
599                         aIdx.Assign( *pTableNd->EndOfSectionNode(), + 1 );
600                         continue;
601                     }
602                 }
603                 else
604                 {
/sw/source/core/crsr/trvltbl.cxx: 610 in GotoNextTable(SwPaM &, const SwMoveFnCollection &, bool)()
604                 {
605                     aIdx = *aIdx.GetNode().EndOfSectionNode();
606                     // check protected cells
607                     if( !lcl_FindNextCell( aIdx, bInReadOnly ))
608                     {
609                         // skip table
>>>     CID 1434899:    (FORWARD_NULL)
>>>     Passing null pointer "pTableNd" to "EndOfSectionNode", which dereferences it.
610                         aIdx.Assign( *pTableNd->EndOfSectionNode(), + 1 );
611                         continue;
612                     }
613                 }
614     
615                 SwTextNode* pTextNode = aIdx.GetNode().GetTextNode();

** CID 1434898:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1125 in dbaui::OTableEditorCtrl::IsCopyAllowed()()


________________________________________________________________________________________________________
*** CID 1434898:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1125 in dbaui::OTableEditorCtrl::IsCopyAllowed()()
1119     
1120             // If one of the selected rows is empty, Copy is not possible
1121              std::shared_ptr<OTableRow>  pRow;
1122             long nIndex = FirstSelectedRow();
1123             while( nIndex != SFX_ENDOFSELECTION )
1124             {
>>>     CID 1434898:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1125                 pRow = (*m_pRowList)[nIndex];
1126                 if( !pRow->GetActFieldDescr() )
1127                     return false;
1128     
1129                 nIndex = NextSelectedRow();
1130             }

** CID 1434897:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 238 in rptui::OFieldExpressionControl::fillSelectedGroups()()


________________________________________________________________________________________________________
*** CID 1434897:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 238 in rptui::OFieldExpressionControl::fillSelectedGroups()()
232         if ( nCount >= 1 )
233         {
234             for( long nIndex=FirstSelectedRow(); nIndex != SFX_ENDOFSELECTION; nIndex=NextSelectedRow() )
235             {
236                 try
237                 {
>>>     CID 1434897:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
238                     if ( m_aGroupPositions[nIndex] != NO_GROUP )
239                     {
240                         uno::Reference< report::XGroup> xOrgGroup(xGroups->getByIndex(m_aGroupPositions[nIndex]),uno::UNO_QUERY);
241                         /*uno::Reference< report::XGroup> xCopy = xGroups->createGroup();
242                         ::comphelper::copyProperties(xOrgGroup.get(),xCopy.get());*/
243                         vClipboardList.push_back( uno::makeAny(xOrgGroup) );

** CID 1434896:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TableUndo.cxx: 170 in dbaui::OTableEditorDelUndoAct::OTableEditorDelUndoAct(dbaui::OTableEditorCtrl *)()


________________________________________________________________________________________________________
*** CID 1434896:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TableUndo.cxx: 170 in dbaui::OTableEditorDelUndoAct::OTableEditorDelUndoAct(dbaui::OTableEditorCtrl *)()
164         sal_Int32 nIndex = pOwner->FirstSelectedRow();
165          std::shared_ptr<OTableRow>  pOriginalRow;
166          std::shared_ptr<OTableRow>  pNewRow;
167     
168         while( nIndex != SFX_ENDOFSELECTION )
169         {
>>>     CID 1434896:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
170             pOriginalRow = (*pOriginalRows)[nIndex];
171             pNewRow.reset(new OTableRow( *pOriginalRow, nIndex ));
172             m_aDeletedRows.push_back( pNewRow);
173     
174             nIndex = pOwner->NextSelectedRow();
175         }

** CID 1434895:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 238 in rptui::OFieldExpressionControl::fillSelectedGroups()()


________________________________________________________________________________________________________
*** CID 1434895:  Error handling issues  (NEGATIVE_RETURNS)
/reportdesign/source/ui/dlg/GroupsSorting.cxx: 238 in rptui::OFieldExpressionControl::fillSelectedGroups()()
232         if ( nCount >= 1 )
233         {
234             for( long nIndex=FirstSelectedRow(); nIndex != SFX_ENDOFSELECTION; nIndex=NextSelectedRow() )
235             {
236                 try
237                 {
>>>     CID 1434895:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
238                     if ( m_aGroupPositions[nIndex] != NO_GROUP )
239                     {
240                         uno::Reference< report::XGroup> xOrgGroup(xGroups->getByIndex(m_aGroupPositions[nIndex]),uno::UNO_QUERY);
241                         /*uno::Reference< report::XGroup> xCopy = xGroups->createGroup();
242                         ::comphelper::copyProperties(xOrgGroup.get(),xCopy.get());*/
243                         vClipboardList.push_back( uno::makeAny(xOrgGroup) );

** CID 1434894:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 720 in dbaui::OTableEditorCtrl::CopyRows()()


________________________________________________________________________________________________________
*** CID 1434894:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 720 in dbaui::OTableEditorCtrl::CopyRows()()
714          std::shared_ptr<OTableRow>  pRow;
715         std::vector< std::shared_ptr<OTableRow> > vClipboardList;
716         vClipboardList.reserve(GetSelectRowCount());
717     
718         for( long nIndex=FirstSelectedRow(); nIndex != SFX_ENDOFSELECTION; nIndex=NextSelectedRow() )
719         {
>>>     CID 1434894:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
720             pRow = (*m_pRowList)[nIndex];
721             OSL_ENSURE(pRow,"OTableEditorCtrl::CopyRows: Row is NULL!");
722             if ( pRow && pRow->GetActFieldDescr() )
723             {
724                 pClipboardRow.reset(new OTableRow( *pRow ));
725                 vClipboardList.push_back( pClipboardRow);

** CID 1434893:  Uninitialized members  (UNINIT_CTOR)
/vcl/inc/BitmapScaleConvolutionFilter.hxx: 36 in vcl::BitmapScaleConvolutionFilter::BitmapScaleConvolutionFilter(const double &, const double &)()


________________________________________________________________________________________________________
*** CID 1434893:  Uninitialized members  (UNINIT_CTOR)
/vcl/inc/BitmapScaleConvolutionFilter.hxx: 36 in vcl::BitmapScaleConvolutionFilter::BitmapScaleConvolutionFilter(const double &, const double &)()
30     {
31     public:
32         BitmapScaleConvolutionFilter(const double& rScaleX, const double& rScaleY)
33             : mrScaleX(rScaleX)
34             , mrScaleY(rScaleY)
35         {
>>>     CID 1434893:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mpKernel" is not initialized in this constructor nor in any functions that it calls.
36         }
37     
38         virtual BitmapEx execute(BitmapEx const& rBitmap) override;
39     
40     protected:
41         Kernel* mpKernel;

** CID 1434892:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1283 in dbaui::OTableEditorCtrl::IsPrimaryKeyAllowed(long)()


________________________________________________________________________________________________________
*** CID 1434892:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1283 in dbaui::OTableEditorCtrl::IsPrimaryKeyAllowed(long)()
1277         // - No Memo or Image entries
1278         // - DROP is not permitted (see above) and the column is not Required (not null flag is not set).
1279         long nIndex = FirstSelectedRow();
1280          std::shared_ptr<OTableRow>  pRow;
1281         while( nIndex != SFX_ENDOFSELECTION )
1282         {
>>>     CID 1434892:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1283             pRow = (*m_pRowList)[nIndex];
1284             OFieldDescription* pFieldDescr = pRow->GetActFieldDescr();
1285             if(!pFieldDescr)
1286                 return false;
1287             else
1288             {

** CID 1434891:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 720 in dbaui::OTableEditorCtrl::CopyRows()()


________________________________________________________________________________________________________
*** CID 1434891:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 720 in dbaui::OTableEditorCtrl::CopyRows()()
714          std::shared_ptr<OTableRow>  pRow;
715         std::vector< std::shared_ptr<OTableRow> > vClipboardList;
716         vClipboardList.reserve(GetSelectRowCount());
717     
718         for( long nIndex=FirstSelectedRow(); nIndex != SFX_ENDOFSELECTION; nIndex=NextSelectedRow() )
719         {
>>>     CID 1434891:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
720             pRow = (*m_pRowList)[nIndex];
721             OSL_ENSURE(pRow,"OTableEditorCtrl::CopyRows: Row is NULL!");
722             if ( pRow && pRow->GetActFieldDescr() )
723             {
724                 pClipboardRow.reset(new OTableRow( *pRow ));
725                 vClipboardList.push_back( pClipboardRow);

** CID 1434890:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1125 in dbaui::OTableEditorCtrl::IsCopyAllowed()()


________________________________________________________________________________________________________
*** CID 1434890:  Error handling issues  (NEGATIVE_RETURNS)
/dbaccess/source/ui/tabledesign/TEditControl.cxx: 1125 in dbaui::OTableEditorCtrl::IsCopyAllowed()()
1119     
1120             // If one of the selected rows is empty, Copy is not possible
1121              std::shared_ptr<OTableRow>  pRow;
1122             long nIndex = FirstSelectedRow();
1123             while( nIndex != SFX_ENDOFSELECTION )
1124             {
>>>     CID 1434890:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "nIndex" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]
1125                 pRow = (*m_pRowList)[nIndex];
1126                 if( !pRow->GetActFieldDescr() )
1127                     return false;
1128     
1129                 nIndex = NextSelectedRow();
1130             }

** CID 1434889:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/ui/misc/insfnote.cxx: 183 in SwInsFootNoteDlg::~SwInsFootNoteDlg()()


________________________________________________________________________________________________________
*** CID 1434889:  Error handling issues  (UNCAUGHT_EXCEPT)
/sw/source/ui/misc/insfnote.cxx: 183 in SwInsFootNoteDlg::~SwInsFootNoteDlg()()
177     
178             m_xPrevBT->show();
179             m_xNextBT->show();
180         }
181     }
182     
>>>     CID 1434889:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
183     SwInsFootNoteDlg::~SwInsFootNoteDlg()
184     {
185         SwViewShell::SetCareDialog(nullptr);
186     
187         if (m_bEdit)
188             m_rSh.ResetSelect(nullptr, false);

** CID 1401334:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/unique_ptr.h: 371 in std::unique_ptr<ScDocument, std::default_delete<ScDocument>>::reset(ScDocument *)()


________________________________________________________________________________________________________
*** CID 1401334:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/unique_ptr.h: 371 in std::unique_ptr<ScDocument, std::default_delete<ScDocument>>::reset(ScDocument *)()
365            *
366            * @param __p  The new pointer to store.
367            *
368            * The deleter will be invoked if a pointer is already owned.
369            */
370           void
>>>     CID 1401334:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
371           reset(pointer __p = pointer()) noexcept
372           {
373     	using std::swap;
374     	swap(_M_t._M_ptr(), __p);
375     	if (__p != pointer())
376     	  get_deleter()(__p);

** CID 1401328:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/unique_ptr.h: 264 in std::unique_ptr<ScDocument, std::default_delete<ScDocument>>::~unique_ptr()()


________________________________________________________________________________________________________
*** CID 1401328:  Error handling issues  (UNCAUGHT_EXCEPT)
/usr/include/c++/7/bits/unique_ptr.h: 264 in std::unique_ptr<ScDocument, std::default_delete<ScDocument>>::~unique_ptr()()
258           template<typename _Up, typename = _Require<
259     	       is_convertible<_Up*, _Tp*>, is_same<_Dp, default_delete<_Tp>>>>
260     	unique_ptr(auto_ptr<_Up>&& __u) noexcept;
261     #endif
262     
263           /// Destructor, invokes the deleter if the stored pointer is not null.
>>>     CID 1401328:  Error handling issues  (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
264           ~unique_ptr() noexcept
265           {
266     	auto& __ptr = _M_t._M_ptr();
267     	if (__ptr != nullptr)
268     	  get_deleter()(__ptr);
269     	__ptr = pointer();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpypu0rwK0sRVxc5n-2BKjwhYpuwnTZ04pWDknx3aSDzjh64szRA1iCKqG0-2Bba0GTOyEwEnxQ-2BC-2B0KAgQzGC34rAFD9fA3ylzSrpm-2FRAy3kQZ2ejfqnU2kFgT3T4P7W-2FUNElnOkL7ldU9IevmTV21AGVLviVOzzQf9HWV6H06IHC3lLo-3D



More information about the LibreOffice mailing list