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



Hi,

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

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


** CID 1374319:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/gdi/octree.cxx: 104 in Octree::Octree(const BitmapReadAccess &, unsigned long)()


________________________________________________________________________________________________________
*** CID 1374319:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/gdi/octree.cxx: 104 in Octree::Octree(const BitmapReadAccess &, unsigned long)()
98                         while( nLeafCount > nMax )
99                             ImplReduce();
100                     }
101                 }
102             }
103         }
    CID 1374319:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "nPalIndex" is not initialized in this constructor nor in any 
functions that it calls.
104     }
105     
106     Octree::~Octree()
107     {
108         ImplDeleteOctree( &pTree );
109         delete pNodeCache;

** CID 1374318:  Uninitialized members  (UNINIT_CTOR)
/rsc/source/parser/rscdb.cxx: 65 in RscTypCont::RscTypCont(RscError *, RSCBYTEORDER_TYPE, const 
rtl::OString &, unsigned int)()


________________________________________________________________________________________________________
*** CID 1374318:  Uninitialized members  (UNINIT_CTOR)
/rsc/source/parser/rscdb.cxx: 65 in RscTypCont::RscTypCont(RscError *, RSCBYTEORDER_TYPE, const 
rtl::OString &, unsigned int)()
59         , aLangString( pHS->getID( "Lang_Chars" ), RSC_NOTYPE, &aString, &aLangType )
60         , aLangShort( pHS->getID( "Lang_short" ), RSC_NOTYPE, &aShort, &aLangType )
61         , pEH(pErrHdl)
62         , nFlags( nFlagsP )
63     {
64         Init();
    CID 1374318:  Uninitialized members  (UNINIT_CTOR)
    Non-static class member "nFilePos" is not initialized in this constructor nor in any 
functions that it calls.
65     }
66     
67     OString RscTypCont::ChangeLanguage(const OString& rNewLang)
68     {
69         OString aRet = aLanguage;
70         aLanguage = rNewLang;

** CID 1374317:  Error handling issues  (UNCAUGHT_EXCEPT)
/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx: 149 in 
framework::ActionTriggerSeparatorPropertySet::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374317:  Error handling issues  (UNCAUGHT_EXCEPT)
/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx: 149 in 
framework::ActionTriggerSeparatorPropertySet::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()
143     
144     Sequence< sal_Int8 > SAL_CALL ActionTriggerSeparatorPropertySet::getImplementationId() 
throw ( RuntimeException, std::exception )
145     {
146         return css::uno::Sequence<sal_Int8>();
147     }
148     
    CID 1374317:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
149     sal_Bool SAL_CALL ActionTriggerSeparatorPropertySet::convertFastPropertyValue(
150         Any&        aConvertedValue,
151         Any&        aOldValue,
152         sal_Int32   nHandle,
153         const Any&  aValue  )
154     throw( IllegalArgumentException )

** CID 1374316:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Hidden.cxx: 91 in 
frm::OHiddenModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374316:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Hidden.cxx: 91 in 
frm::OHiddenModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()
85             default:
86                 OControlModel::setFastPropertyValue_NoBroadcast(_nHandle, _rValue);
87         }
88     }
89     
90     
    CID 1374316:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
91     sal_Bool OHiddenModel::convertFastPropertyValue(
92                 Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue)
93                 throw (IllegalArgumentException)
94     {
95         bool bModified(false);
96         switch (_nHandle)

** CID 1374315:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/ListBox.cxx: 391 in 
frm::OListBoxModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374315:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/ListBox.cxx: 391 in 
frm::OListBoxModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()
385             default:
386                 OBoundControlModel::setFastPropertyValue_NoBroadcast(_nHandle, _rValue);
387             }
388         }
389     
390     
    CID 1374315:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(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().
391         sal_Bool OListBoxModel::convertFastPropertyValue(
392             Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue)
393             throw (IllegalArgumentException, std::exception)
394         {
395             bool bModified(false);
396             switch (_nHandle)

** CID 1374314:    (UNCAUGHT_EXCEPT)
/forms/source/richtext/richtextmodel.cxx: 332 in 
frm::ORichTextModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()
/forms/source/richtext/richtextmodel.cxx: 332 in 
frm::ORichTextModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374314:    (UNCAUGHT_EXCEPT)
/forms/source/richtext/richtextmodel.cxx: 332 in 
frm::ORichTextModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()
326             {
327                 OControlModel::getFastPropertyValue( _rValue, _nHandle );
328             }
329         }
330     
331     
    CID 1374314:    (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
332         sal_Bool SAL_CALL ORichTextModel::convertFastPropertyValue( Any& _rConvertedValue, Any& 
_rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
333         {
334             bool bModified = false;
335     
336             if ( isRegisteredProperty( _nHandle ) )
337             {
/forms/source/richtext/richtextmodel.cxx: 332 in 
frm::ORichTextModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any 
&, int, const com::sun::star::uno::Any &)()
326             {
327                 OControlModel::getFastPropertyValue( _rValue, _nHandle );
328             }
329         }
330     
331     
    CID 1374314:    (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
332         sal_Bool SAL_CALL ORichTextModel::convertFastPropertyValue( Any& _rConvertedValue, Any& 
_rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
333         {
334             bool bModified = false;
335     
336             if ( isRegisteredProperty( _nHandle ) )
337             {

** CID 1374313:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Date.cxx: 183 in 
frm::ODateModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374313:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Date.cxx: 183 in 
frm::ODateModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()
177                 OEditBaseModel::getFastPropertyValue(_rValue, _nHandle);
178                 break;
179         }
180     }
181     
182     
    CID 1374313:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
183     sal_Bool SAL_CALL ODateModel::convertFastPropertyValue(Any& _rConvertedValue, Any& 
_rOldValue,
184             sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException)
185     {
186         if (PROPERTY_ID_FORMATKEY == _nHandle)
187             return convertFormatKeyPropertyValue(_rConvertedValue, _rOldValue, _rValue);
188         else

** CID 1374312:    (UNCAUGHT_EXCEPT)
/forms/source/component/navigationbar.cxx: 343 in 
frm::ONavigationBarModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()
/forms/source/component/navigationbar.cxx: 343 in 
frm::ONavigationBarModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374312:    (UNCAUGHT_EXCEPT)
/forms/source/component/navigationbar.cxx: 343 in 
frm::ONavigationBarModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()
337             {
338                 OControlModel::getFastPropertyValue( _rValue, _nHandle );
339             }
340         }
341     
342     
    CID 1374312:    (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
343         sal_Bool SAL_CALL ONavigationBarModel::convertFastPropertyValue( Any& _rConvertedValue, 
Any& _rOldValue,
344             sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
345         {
346             bool bModified = false;
347     
348             if ( isRegisteredProperty( _nHandle ) )
/forms/source/component/navigationbar.cxx: 343 in 
frm::ONavigationBarModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()
337             {
338                 OControlModel::getFastPropertyValue( _rValue, _nHandle );
339             }
340         }
341     
342     
    CID 1374312:    (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
343         sal_Bool SAL_CALL ONavigationBarModel::convertFastPropertyValue( Any& _rConvertedValue, 
Any& _rOldValue,
344             sal_Int32 _nHandle, const Any& _rValue ) throw( IllegalArgumentException )
345         {
346             bool bModified = false;
347     
348             if ( isRegisteredProperty( _nHandle ) )

** CID 1374311:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Time.cxx: 174 in 
frm::OTimeModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374311:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/Time.cxx: 174 in 
frm::OTimeModel::convertFastPropertyValue(com::sun::star::uno::Any &, com::sun::star::uno::Any &, 
int, const com::sun::star::uno::Any &)()
168                 OEditBaseModel::getFastPropertyValue(_rValue, _nHandle);
169                 break;
170         }
171     }
172     
173     
    CID 1374311:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
174     sal_Bool SAL_CALL OTimeModel::convertFastPropertyValue(Any& _rConvertedValue, Any& 
_rOldValue,
175             sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException)
176     {
177         if (PROPERTY_ID_FORMATKEY == _nHandle)
178             return convertFormatKeyPropertyValue(_rConvertedValue, _rOldValue, _rValue);
179         else

** CID 1374310:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/File.cxx: 170 in 
frm::OFileControlModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()


________________________________________________________________________________________________________
*** CID 1374310:  Error handling issues  (UNCAUGHT_EXCEPT)
/forms/source/component/File.cxx: 170 in 
frm::OFileControlModel::convertFastPropertyValue(com::sun::star::uno::Any &, 
com::sun::star::uno::Any &, int, const com::sun::star::uno::Any &)()
164             default:
165                 OControlModel::setFastPropertyValue_NoBroadcast(nHandle, rValue);
166         }
167     }
168     
169     
    CID 1374310:  Error handling issues  (UNCAUGHT_EXCEPT)
    An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list 
"throw(com::sun::star::lang::IllegalArgumentException)" doesn't allow it to be thrown. This 
will cause a call to unexpected() which usually calls terminate().
170     sal_Bool OFileControlModel::convertFastPropertyValue(Any& rConvertedValue, Any& rOldValue, 
sal_Int32 nHandle, const Any& rValue)
171                                 throw( IllegalArgumentException )
172     {
173         switch (nHandle)
174         {
175             case PROPERTY_ID_DEFAULT_TEXT :

** CID 1374309:    (UNCAUGHT_EXCEPT)
/stoc/source/javavm/javavm.cxx: 349 in <unnamed>::getDefaultLocaleFromConfig(stoc_javavm::JVM *, 
const com::sun::star::uno::Reference<com::sun::star::lang::XMultiComponentFactory> &, const 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
/stoc/source/javavm/javavm.cxx: 349 in <unnamed>::getDefaultLocaleFromConfig(stoc_javavm::JVM *, 
const com::sun::star::uno::Reference<com::sun::star::lang::XMultiComponentFactory> &, const 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()


________________________________________________________________________________________________________
*** CID 1374309:    (UNCAUGHT_EXCEPT)
/stoc/source/javavm/javavm.cxx: 349 in <unnamed>::getDefaultLocaleFromConfig(stoc_javavm::JVM *, 
const com::sun::star::uno::Reference<com::sun::star::lang::XMultiComponentFactory> &, const 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
343                 pjvm->pushProp(ftpNonProxyHosts);
344             }
345         }
346         xConfRegistry_simple->close();
347     }
348     
    CID 1374309:    (UNCAUGHT_EXCEPT)
    An exception of type "std::length_error" is thrown but the throw list 
"throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call 
to unexpected() which usually calls terminate().
349     void getDefaultLocaleFromConfig(
350         stoc_javavm::JVM * pjvm,
351         const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
352         const css::uno::Reference<css::uno::XComponentContext> &xCtx ) 
throw(css::uno::Exception)
353     {
354         css::uno::Reference<css::uno::XInterface> xConfRegistry =
/stoc/source/javavm/javavm.cxx: 349 in <unnamed>::getDefaultLocaleFromConfig(stoc_javavm::JVM *, 
const com::sun::star::uno::Reference<com::sun::star::lang::XMultiComponentFactory> &, const 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &)()
343                 pjvm->pushProp(ftpNonProxyHosts);
344             }
345         }
346         xConfRegistry_simple->close();
347     }
348     
    CID 1374309:    (UNCAUGHT_EXCEPT)
    An exception of type "std::length_error" is thrown but the throw list 
"throw(com::sun::star::uno::Exception)" doesn't allow it to be thrown. This will cause a call 
to unexpected() which usually calls terminate().
349     void getDefaultLocaleFromConfig(
350         stoc_javavm::JVM * pjvm,
351         const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
352         const css::uno::Reference<css::uno::XComponentContext> &xCtx ) 
throw(css::uno::Exception)
353     {
354         css::uno::Reference<css::uno::XInterface> xConfRegistry =

** CID 1374308:  Insecure data handling  (TAINTED_SCALAR)
/solenv/gbuildtojson/gbuildtojson.cxx: 51 in main()


________________________________________________________________________________________________________
*** CID 1374308:  Insecure data handling  (TAINTED_SCALAR)
/solenv/gbuildtojson/gbuildtojson.cxx: 51 in main()
45     {
46         const string optsintro("--");
47         map<string, string> vartofile;
48         for(int i=1; i < argc; ++i)
49         {
50             const string arg(argv[i]);
    CID 1374308:  Insecure data handling  (TAINTED_SCALAR)
    Assigning: "<temporary>" = "substr", which taints "<temporary>".
51             if(arg.substr(0,2) != optsintro)
52             {
53                 cerr << "Only option args starting with -- allowed." << endl;
54                 return 1;
55             }
56             const size_t eqpos = arg.find("=", 2);


________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyX7-2B4PmOipuZAwEVKYjph4u8ASniFJvx6owiR7WSrRQwbqUJNVutUVAjSxC-2B39fEDup-2B4p3Fs5vPOVn7WDbYubXB9B316XQmjAbpKkoj3C44BuQRcsuhYjPDt7Bd8YhK7A-2BJLqGv-2BUIXRfZStE93Fj3FG2FraBcTK0edriyllD8w-3D

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyX7-2B4PmOipuZAwEVKYjph4nnqZ7SruVFkqpwDRGwXeSLZF6rLsET0Du6Du47hg8-2BDwlgomlaU3CYblN4klQUE4MSTC8BCl2nXfNoLHK-2BoSydhuM3cfGHmCtFyt8qYkChn-2BLkiMDzQkHc5U4vWzu5mhIwvb1EJt8fC9mf8kdymddI-3D


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.