New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Sep 11 05:23:05 UTC 2021


Hi,

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

3 new defect(s) introduced to LibreOffice found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1491409:  Uninitialized members  (UNINIT_CTOR)
/workdir/UnpackedTarball/cuckoo/libcuckoo/cuckoohash_map.hh: 1555 in libcuckoo::cuckoohash_map<_rtl_uString *, std::pair<rtl::OUString, rtl::OUString>, svl::<unnamed>::HashFunction, svl::<unnamed>::EqualsFunction, std::allocator<std::pair<_rtl_uString *const , std::pair<rtl::OUString, rtl::OUString>>>, (unsigned long)4>::b_slot::b_slot()()


________________________________________________________________________________________________________
*** CID 1491409:  Uninitialized members  (UNINIT_CTOR)
/workdir/UnpackedTarball/cuckoo/libcuckoo/cuckoohash_map.hh: 1555 in libcuckoo::cuckoohash_map<_rtl_uString *, std::pair<rtl::OUString, rtl::OUString>, svl::<unnamed>::HashFunction, svl::<unnamed>::EqualsFunction, std::allocator<std::pair<_rtl_uString *const , std::pair<rtl::OUString, rtl::OUString>>>, (unsigned long)4>::b_slot::b_slot()()
1549         static_assert(MAX_BFS_PATH_LEN - 1 <=
1550                           std::numeric_limits<decltype(depth)>::max(),
1551                       "The depth type must able to hold a value of"
1552                       " MAX_BFS_PATH_LEN - 1");
1553         static_assert(-1 >= std::numeric_limits<decltype(depth)>::min(),
1554                       "The depth type must be able to hold a value of -1");
>>>     CID 1491409:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "depth" is not initialized in this constructor nor in any functions that it calls.
1555         b_slot() {}
1556         b_slot(const size_type b, const uint16_t p, const decltype(depth) d)
1557             : bucket(b), pathcode(p), depth(d) {
1558           assert(d < MAX_BFS_PATH_LEN);
1559         }
1560       };

** CID 1491408:  Uninitialized members  (UNINIT_CTOR)
/workdir/UnpackedTarball/cuckoo/libcuckoo/cuckoohash_map.hh: 869 in libcuckoo::cuckoohash_map<_rtl_uString *, std::pair<rtl::OUString, rtl::OUString>, svl::<unnamed>::HashFunction, svl::<unnamed>::EqualsFunction, std::allocator<std::pair<_rtl_uString *const , std::pair<rtl::OUString, rtl::OUString>>>, (unsigned long)4>::TwoBuckets::TwoBuckets()()


________________________________________________________________________________________________________
*** CID 1491408:  Uninitialized members  (UNINIT_CTOR)
/workdir/UnpackedTarball/cuckoo/libcuckoo/cuckoohash_map.hh: 869 in libcuckoo::cuckoohash_map<_rtl_uString *, std::pair<rtl::OUString, rtl::OUString>, svl::<unnamed>::HashFunction, svl::<unnamed>::EqualsFunction, std::allocator<std::pair<_rtl_uString *const , std::pair<rtl::OUString, rtl::OUString>>>, (unsigned long)4>::TwoBuckets::TwoBuckets()()
863       // locks. In normal_mode, we actually do take locks, and can rehash lazily.
864       using locked_table_mode = std::integral_constant<bool, true>;
865       using normal_mode = std::integral_constant<bool, false>;
866     
867       class TwoBuckets {
868       public:
>>>     CID 1491408:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "i2" is not initialized in this constructor nor in any functions that it calls.
869         TwoBuckets() {}
870         TwoBuckets(size_type i1_, size_type i2_, locked_table_mode)
871             : i1(i1_), i2(i2_) {}
872         TwoBuckets(locks_t &locks, size_type i1_, size_type i2_, normal_mode)
873             : i1(i1_), i2(i2_), first_manager_(&locks[lock_ind(i1)]),
874               second_manager_((lock_ind(i1) != lock_ind(i2)) ? &locks[lock_ind(i2)]

** CID 1454626:  Uninitialized members  (UNINIT_CTOR)
/oox/source/export/chartexport.cxx: 543 in oox::drawingml::ChartExport::ChartExport(int, std::shared_ptr<sax_fastparser::FastSerializerHelper>, const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, oox::core::XmlFilterBase *, oox::drawingml::DocumentType)()


________________________________________________________________________________________________________
*** CID 1454626:  Uninitialized members  (UNINIT_CTOR)
/oox/source/export/chartexport.cxx: 543 in oox::drawingml::ChartExport::ChartExport(int, std::shared_ptr<sax_fastparser::FastSerializerHelper>, const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, oox::core::XmlFilterBase *, oox::drawingml::DocumentType)()
537         , mbHasCategoryLabels( false )
538         , mbHasZAxis( false )
539         , mbIs3DChart( false )
540         , mbStacked(false)
541         , mbPercent(false)
542     {
>>>     CID 1454626:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mbHasDateCategories" is not initialized in this constructor nor in any functions that it calls.
543     }
544     
545     void ChartExport::SetURLTranslator(const std::shared_ptr<URLTransformer>& pTransformer)
546     {
547         mpURLTransformer = pTransformer;
548     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3Dqfzr_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi8Yl5FxFC1LklfV039wgscxnIjLWDh8J6hBKOIDcHNrMymQlXwofvmTuO498ayhDWpRgH-2Fhvq5ouQM-2BNEBzsI6Ry0Ld8SK1ObJLGEAd1CZVjLj4dNedP-2FhZnE4XqnWqEtsYVeNK5VQiwWH0JxExTasU1y4k9N0-2BwlLOsngS2K054-3D



More information about the LibreOffice mailing list