Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index



Hi,

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

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


** CID 1327466:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/wizards/com/sun/star/wizards/db/TypeInspector.java: 55 in ()


________________________________________________________________________________________________________
*** CID 1327466:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
/wizards/com/sun/star/wizards/db/TypeInspector.java: 55 in ()
49         public static class TypeInfo
50         {
51             public boolean bisAutoIncrementable;
52     
53             public TypeInfo(boolean _bisAutoIncrementable)
54             {
    CID 1327466:  FindBugs: Dodgy code  (FB.URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)
    Unread public/protected field: 
com.sun.star.wizards.db.TypeInspector$TypeInfo.bisAutoIncrementable.
55                 bisAutoIncrementable = _bisAutoIncrementable;
56             }
57         }
58     
59         public TypeInspector(XResultSet _xResultSet)
60         {

** CID 1327465:  FindBugs: Bad practice  (FB.EQ_GETCLASS_AND_CLASS_CONSTANT)
/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java: 323 in 
com.sun.star.wiki.LoggingProtocolSocketFactory.equals(java.lang.Object)()


________________________________________________________________________________________________________
*** CID 1327465:  FindBugs: Bad practice  (FB.EQ_GETCLASS_AND_CLASS_CONSTANT)
/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java: 323 in 
com.sun.star.wiki.LoggingProtocolSocketFactory.equals(java.lang.Object)()
317             return ((SSLSocketFactory) 
SSLSocketFactory.getDefault()).getSupportedCipherSuites();
318         }
319     
320         @Override
321         public boolean equals(Object obj)
322         {
    CID 1327465:  FindBugs: Bad practice  (FB.EQ_GETCLASS_AND_CLASS_CONSTANT)
    com.sun.star.wiki.LoggingProtocolSocketFactory.equals(Object) fails for subtypes.
323             return ((obj != null) && obj.getClass().equals(LoggingProtocolSocketFactory.class));
324         }
325     
326         @Override
327         public int hashCode()
328         {
329             return LoggingProtocolSocketFactory.class.hashCode();
330         }

** CID 1327464:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java: 207 in 
com.sun.star.wiki.WikiArticle.setArticle(java.lang.String, java.lang.String, boolean)()


________________________________________________________________________________________________________
*** CID 1327464:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java: 207 in 
com.sun.star.wiki.WikiArticle.setArticle(java.lang.String, java.lang.String, boolean)()
201     
202                 HttpURLConnection connPost = Helper.PrepareMethod("POST", uri, m_xContext);
203                 connPost.setDoInput(true);
204                 connPost.setDoOutput(true);
205                 connPost.connect();
206     
    CID 1327464:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    Found reliance on default encoding: new java.io.OutputStreamWriter(OutputStream).
207                 OutputStreamWriter post = new OutputStreamWriter(connPost.getOutputStream());
208                 post.write("wpTextbox1=");
209                 post.write(URLEncoder.encode(sWikiCode, "UTF-8"));
210                 post.write("&wpSummary=");
211                 post.write(URLEncoder.encode(sWikiComment, "UTF-8"));
212                 post.write("&wpSection=");

** CID 1327463:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/swext/mediawiki/src/com/sun/star/wiki/Helper.java: 773 in 
com.sun.star.wiki.Helper.Login(java.net.URI, java.lang.String, java.lang.String, 
com.sun.star.uno.XComponentContext)()


________________________________________________________________________________________________________
*** CID 1327463:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/swext/mediawiki/src/com/sun/star/wiki/Helper.java: 773 in 
com.sun.star.wiki.Helper.Login(java.net.URI, java.lang.String, java.lang.String, 
com.sun.star.uno.XComponentContext)()
767                     HttpURLConnection connPost = PrepareMethod("POST", aPostURI, xContext);
768                     connPost.setInstanceFollowRedirects(true);
769                     connPost.setDoInput(true);
770                     connPost.setDoOutput(true);
771                     connPost.connect();
772     
    CID 1327463:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    Found reliance on default encoding: new java.io.OutputStreamWriter(OutputStream).
773                     OutputStreamWriter post = new 
OutputStreamWriter(connPost.getOutputStream());
774                     post.write("wpName=");
775                     post.write(URLEncoder.encode(sWikiUser, "UTF-8"));
776                     post.write("&wpRemember=1");
777                     post.write("&wpPassword=");
778                     post.write(URLEncoder.encode(sWikiPass, "UTF-8"));

** CID 1327462:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java: 824 in 
mod._forms.ODatabaseForm$InteractionHandlerImpl.<init>()()


________________________________________________________________________________________________________
*** CID 1327462:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java: 824 in 
mod._forms.ODatabaseForm$InteractionHandlerImpl.<init>()()
818          * Implementation of interface _XCompletedExecution.CheckInteractionHandler
819          * for the XCompletedExecution test
820          * @see ifc.sdb._XCompletedExecution
821          */
822         private static class InteractionHandlerImpl implements 
_XCompletedExecution.CheckInteractionHandler {
823             private boolean handlerWasUsed = false;
    CID 1327462:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    Found reliance on default encoding: new java.io.PrintWriter(OutputStream).
824             private PrintWriter log = new PrintWriter(System.out);
825     
826             public boolean checkInteractionHandler() {
827                 return handlerWasUsed;
828             }
829     

** CID 1327461:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java: 537 in 
mod._dbaccess.ORowSet$InteractionHandlerImpl.<init>()()


________________________________________________________________________________________________________
*** CID 1327461:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java: 537 in 
mod._dbaccess.ORowSet$InteractionHandlerImpl.<init>()()
531          * Implementation of interface _XCompletedExecution.CheckInteractionHandler
532          * for the XCompletedExecution test
533          * @see ifc.sdb._XCompletedExecution
534          */
535         private static class InteractionHandlerImpl implements 
_XCompletedExecution.CheckInteractionHandler {
536             private boolean handlerWasUsed = false;
    CID 1327461:  FindBugs: Internationalization  (FB.DM_DEFAULT_ENCODING)
    Found reliance on default encoding: new java.io.PrintWriter(OutputStream).
537             private PrintWriter log = new PrintWriter(System.out);
538     
539             public boolean checkInteractionHandler() {
540                 return handlerWasUsed;
541             }
542     

** CID 1327460:  FindBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java: 452 in 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.acquire()()


________________________________________________________________________________________________________
*** CID 1327460:  FindBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
/jurt/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge.java: 452 in 
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.acquire()()
446         /**
447          * Increases the life count.
448          *
449          * @see com.sun.star.uno.IBridge#acquire
450          */
451         public void acquire() {
    CID 1327460:  FindBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
    Dead store to x.
452             int x = _life_count.incrementAndGet();
453     
454             if(DEBUG) System.err.println("##### " + getClass().getName() + ".acquire:" + x);
455         }
456     
457         /**

** CID 1327459:  FindBugs: Dodgy code  (FB.BC_UNCONFIRMED_CAST)
/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java: 182 in 
com.sun.star.wiki.LoggingProtocolSocketFactory$LogSocket.<init>(java.net.Socket)()


________________________________________________________________________________________________________
*** CID 1327459:  FindBugs: Dodgy code  (FB.BC_UNCONFIRMED_CAST)
/swext/mediawiki/src/com/sun/star/wiki/WikiProtocolSocketFactory.java: 182 in 
com.sun.star.wiki.LoggingProtocolSocketFactory$LogSocket.<init>(java.net.Socket)()
176         private static class LogSocket extends SSLSocket
177         {
178             private SSLSocket m_Socket;
179     
180             public LogSocket(Socket socket)
181             {
    CID 1327459:  FindBugs: Dodgy code  (FB.BC_UNCONFIRMED_CAST)
    Unchecked/unconfirmed cast from java.net.Socket to javax.net.ssl.SSLSocket.
182                 m_Socket = (SSLSocket) socket;
183             }
184     
185             private static class LogStream extends java.io.FilterOutputStream
186             {
187                 public LogStream(java.io.OutputStream stream)

** CID 1327458:  Uninitialized members  (UNINIT_CTOR)
/include/comphelper/configurationlistener.hxx: 107 in 
comphelper::ConfigurationListenerProperty<bool>::ConfigurationListenerProperty(const 
rtl::Reference<comphelper::ConfigurationListener> &, const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1327458:  Uninitialized members  (UNINIT_CTOR)
/include/comphelper/configurationlistener.hxx: 107 in 
comphelper::ConfigurationListenerProperty<bool>::ConfigurationListenerProperty(const 
rtl::Reference<comphelper::ConfigurationListener> &, const rtl::OUString &)()
101     
102     template< typename uno_type > ConfigurationListenerProperty< uno_type 
::ConfigurationListenerProperty(const rtl::Reference< ConfigurationListener > &xListener, const 
OUString &rProp )
103     {
104         maName = rProp;
105         mxListener = xListener;
106         mxListener->addListener(this);
    CID 1327458:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "maValue" is not initialized in this constructor nor in any 
functions that it calls.
107     }
108     
109     template< typename uno_type > ConfigurationListenerProperty< uno_type 
::~ConfigurationListenerProperty()
110     {
111         if (mxListener.is())
112             mxListener->removeListener(this);

** CID 1327457:  Uninitialized members  (UNINIT_CTOR)
/oox/source/ole/vbaexport.cxx: 397 in VBAEncryption::VBAEncryption(const unsigned char *, unsigned 
short, SvStream &, unsigned char *, unsigned char)()


________________________________________________________________________________________________________
*** CID 1327457:  Uninitialized members  (UNINIT_CTOR)
/oox/source/ole/vbaexport.cxx: 397 in VBAEncryption::VBAEncryption(const unsigned char *, unsigned 
short, SvStream &, unsigned char *, unsigned char)()
391         {
392             std::random_device rd;
393             std::mt19937 gen(rd());
394             std::uniform_int_distribution<> dis(0, 255);
395             mnSeed = dis(gen);
396         }
    CID 1327457:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "mnUnencryptedByte1" is not initialized in this constructor nor in 
any functions that it calls.
397     }
398     
399     void VBAEncryption::writeSeed()
400     {
401         exportString(mrEncryptedData, createHexStringFromDigit(mnSeed));
402     }

** CID 1327456:  Uninitialized members  (UNINIT_CTOR)
/extensions/source/propctrlr/standardcontrol.cxx: 1057 in 
pcr::DropDownEditControl::DropDownEditControl(vcl::Window *, long)()


________________________________________________________________________________________________________
*** CID 1327456:  Uninitialized members  (UNINIT_CTOR)
/extensions/source/propctrlr/standardcontrol.cxx: 1057 in 
pcr::DropDownEditControl::DropDownEditControl(vcl::Window *, long)()
1051             }
1052     
1053             m_pFloatingEdit = VclPtr<OMultilineFloatingEdit>::Create(this);
1054     
1055             m_pFloatingEdit->SetPopupModeEndHdl( LINK( this, DropDownEditControl, ReturnHdl ) 
);
1056             m_pFloatingEdit->getEdit().SetReadOnly( ( _nStyle & WB_READONLY ) != 0 );
    CID 1327456:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "m_pHelper" is not initialized in this constructor nor in any 
functions that it calls.
1057         }
1058     
1059     
1060         void DropDownEditControl::setControlHelper( CommonBehaviourControlHelper& 
_rControlHelper )
1061         {
1062             m_pHelper = &_rControlHelper;

** CID 1327455:  Uninitialized members  (UNINIT_CTOR)
/extensions/source/propctrlr/usercontrol.hxx: 44 in 
pcr::NumberFormatSampleField::NumberFormatSampleField(vcl::Window *, long)()


________________________________________________________________________________________________________
*** CID 1327455:  Uninitialized members  (UNINIT_CTOR)
/extensions/source/propctrlr/usercontrol.hxx: 44 in 
pcr::NumberFormatSampleField::NumberFormatSampleField(vcl::Window *, long)()
38         class NumberFormatSampleField : public FormattedField
39         {
40         public:
41             NumberFormatSampleField( vcl::Window* _pParent, WinBits _nStyle )
42                 :FormattedField( _pParent, _nStyle )
43             {
    CID 1327455:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "m_pHelper" is not initialized in this constructor nor in any 
functions that it calls.
44             }
45     
46             void         SetFormatSupplier( const SvNumberFormatsSupplierObj* pSupplier );
47             void         setControlHelper( CommonBehaviourControlHelper& _rControlHelper ) { 
m_pHelper = &_rControlHelper; }
48     
49         protected:

** CID 1327454:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 214 in io_stm::OPipeImpl::skipBytes(int)()


________________________________________________________________________________________________________
*** CID 1327454:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 214 in io_stm::OPipeImpl::skipBytes(int)()
208     
209             m_conditionBytesAvail.wait();
210         }
211     }
212     
213     
    CID 1327454:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::I_FIFO_OutOfBoundsException" is thrown but the throw list 
"throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
214     void OPipeImpl::skipBytes(sal_Int32 nBytesToSkip)
215         throw( NotConnectedException,
216                BufferSizeExceededException,
217                RuntimeException, std::exception )
218     {
219         MutexGuard guard( m_mutexAccess );

** CID 1327453:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 142 in io_stm::OPipeImpl::readBytes(com::sun::star::uno::Sequence<signed 
char> &, int)()


________________________________________________________________________________________________________
*** CID 1327453:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 142 in io_stm::OPipeImpl::readBytes(com::sun::star::uno::Sequence<signed 
char> &, int)()
136     OPipeImpl::~OPipeImpl()
137     {
138         delete m_pFIFO;
139     }
140     
141     
    CID 1327453:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::I_FIFO_OutOfBoundsException" is thrown but the throw list 
"throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
142     sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
143         throw( NotConnectedException, BufferSizeExceededException,RuntimeException, 
std::exception )
144     {
145         while( true )
146         {
147             { // start guarded section

** CID 1327452:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 584 in 
io_stm::OMarkableInputStream::readBytes(com::sun::star::uno::Sequence<signed char> &, int)()


________________________________________________________________________________________________________
*** CID 1327452:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 584 in 
io_stm::OMarkableInputStream::readBytes(com::sun::star::uno::Sequence<signed char> &, int)()
578     
579     
580     
581     
582     // XInputStream
583     
    CID 1327452:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
584     sal_Int32 OMarkableInputStream::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 
nBytesToRead)
585         throw ( NotConnectedException,
586                 BufferSizeExceededException,
587                 RuntimeException, std::exception)
588     {
589         sal_Int32 nBytesRead;

** CID 1327451:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 815 in io_stm::OMarkableInputStream::jumpToFurthest()()


________________________________________________________________________________________________________
*** CID 1327451:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 815 in io_stm::OMarkableInputStream::jumpToFurthest()()
809         else
810         {
811             m_nCurrentPos = (*ii).second;
812         }
813     }
814     
    CID 1327451:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
815     void OMarkableInputStream::jumpToFurthest()         throw (IOException, RuntimeException, 
std::exception)
816     {
817         MutexGuard guard( m_mutex );
818         m_nCurrentPos = m_pBuffer->getSize();
819         checkMarksAndFlush();
820     }

** CID 1327450:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 641 in 
io_stm::OMarkableInputStream::readSomeBytes(com::sun::star::uno::Sequence<signed char> &, int)()


________________________________________________________________________________________________________
*** CID 1327450:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 641 in 
io_stm::OMarkableInputStream::readSomeBytes(com::sun::star::uno::Sequence<signed char> &, int)()
635                 *this );
636         }
637         return nBytesRead;
638     }
639     
640     
    CID 1327450:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
641     sal_Int32 OMarkableInputStream::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 
nMaxBytesToRead)
642         throw ( NotConnectedException,
643                 BufferSizeExceededException,
644                 RuntimeException, std::exception)
645     {
646     

** CID 1327449:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 775 in io_stm::OMarkableInputStream::deleteMark(int)()


________________________________________________________________________________________________________
*** CID 1327449:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 775 in io_stm::OMarkableInputStream::deleteMark(int)()
769         m_mapMarks[nMark] = m_nCurrentPos;
770     
771         m_nCurrentMark ++;
772         return nMark;
773     }
774     
    CID 1327449:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::IOException, com::sun::star::uno::RuntimeException, 
com::sun::star::lang::IllegalArgumentException, std::exception)" doesn't allow it to be thrown. 
This will cause a call to unexpected() which usually calls terminate().
775     void OMarkableInputStream::deleteMark(sal_Int32 Mark)       throw (IOException, 
IllegalArgumentException, RuntimeException, std::exception)
776     {
777         MutexGuard guard( m_mutex );
778         map<sal_Int32,sal_Int32,less<sal_Int32> >::iterator ii = m_mapMarks.find( Mark );
779     
780         if( ii == m_mapMarks.end() ) {

** CID 1327448:    (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 391 in io_stm::OMarkableOutputStream::checkMarksAndFlush()()
/io/source/stm/omark.cxx: 391 in io_stm::OMarkableOutputStream::checkMarksAndFlush()()


________________________________________________________________________________________________________
*** CID 1327448:    (UNCAUGHT_EXCEPT)
/io/source/stm/omark.cxx: 391 in io_stm::OMarkableOutputStream::checkMarksAndFlush()()
385         return m_pred;
386     }
387     
388     
389     // private methods
390     
    CID 1327448:    (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException)" doesn't allow it to be thrown. This will 
cause a call to unexpected() which usually calls terminate().
391     void OMarkableOutputStream::checkMarksAndFlush() throw(     NotConnectedException,
392                                                                 BufferSizeExceededException)
393     {
394         map<sal_Int32,sal_Int32,less<sal_Int32> >::iterator ii;
395     
396         // find the smallest mark
/io/source/stm/omark.cxx: 391 in io_stm::OMarkableOutputStream::checkMarksAndFlush()()
385         return m_pred;
386     }
387     
388     
389     // private methods
390     
    CID 1327448:    (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::IRingBuffer_OutOfBoundsException" is thrown but the throw 
list "throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException)" doesn't allow it to be thrown. This will 
cause a call to unexpected() which usually calls terminate().
391     void OMarkableOutputStream::checkMarksAndFlush() throw(     NotConnectedException,
392                                                                 BufferSizeExceededException)
393     {
394         map<sal_Int32,sal_Int32,less<sal_Int32> >::iterator ii;
395     
396         // find the smallest mark

** CID 1327447:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 180 in 
io_stm::OPipeImpl::readSomeBytes(com::sun::star::uno::Sequence<signed char> &, int)()


________________________________________________________________________________________________________
*** CID 1327447:  Error handling issues  (UNCAUGHT_EXCEPT)
/io/source/stm/opipe.cxx: 180 in 
io_stm::OPipeImpl::readSomeBytes(com::sun::star::uno::Sequence<signed char> &, int)()
174             // wait for new data outside guarded section!
175             m_conditionBytesAvail.wait();
176         }
177     }
178     
179     
    CID 1327447:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "io_stm::I_FIFO_OutOfBoundsException" is thrown but the throw list 
"throw(com::sun::star::io::NotConnectedException, 
com::sun::star::io::BufferSizeExceededException, com::sun::star::uno::RuntimeException, 
std::exception)" doesn't allow it to be thrown. This will cause a call to unexpected() which 
usually calls terminate().
180     sal_Int32 OPipeImpl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead)
181         throw( NotConnectedException,
182                BufferSizeExceededException,
183                RuntimeException, std::exception )
184     {
185         while( true ) {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.