Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Converity issue (Uninitialized pointer field (UNINIT_CTOR)) #79

Open
Ablu opened this issue Jan 24, 2015 · 0 comments
Open

Converity issue (Uninitialized pointer field (UNINIT_CTOR)) #79

Ablu opened this issue Jan 24, 2015 · 0 comments
Labels

Comments

@Ablu
Copy link
Member

Ablu commented Jan 24, 2015

Hi,

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

1 new defect(s) introduced to mana/manaserv found with Coverity Scan.

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

** CID 38420: Uninitialized pointer field (UNINIT_CTOR)
/usr/include/c++/4.9.2/bits/hashtable.h: 803 in std::_Hashtable<unsigned int, std::pair<const unsigned int, Entity *>, std::allocator<std::pair<const unsigned int, Entity *>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<(bool)0, (bool)0, (bool)1>>::_Hashtable(unsigned long, const std::hash &, const std::__detail::_Mod_range_hashing &, const std::__detail::_Default_ranged_hash &, const std::equal_to &, const std::__detail::_Select1st &, const std::allocator<std::pair<const unsigned int, Entity *>>&)()


*** CID 38420: Uninitialized pointer field (UNINIT_CTOR)
/usr/include/c++/4.9.2/bits/hashtable.h: 803 in std::_Hashtable<unsigned int, std::pair<const unsigned int, Entity *>, std::allocator<std::pair<const unsigned int, Entity *>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<(bool)0, (bool)0, (bool)1>>::_Hashtable(unsigned long, const std::hash &, const std::__detail::_Mod_range_hashing &, const std::__detail::_Default_ranged_hash &, const std::equal_to &, const std::__detail::_Select1st &, const std::allocator<std::pair<const unsigned int, Entity *>>&)()
797 __hashtable_alloc(__node_alloc_type(__a)),
798 _M_element_count(0),
799 _M_rehash_policy()
800 {
801 _M_bucket_count = _M_rehash_policy._M_next_bkt(__bucket_hint);
802 _M_buckets = _M_allocate_buckets(_M_bucket_count);

CID 38420:  Uninitialized pointer field  (UNINIT_CTOR)
Non-static class member "_M_single_bucket" is not initialized in this constructor nor in any functions that it calls.

803 }
804
805 template<typename _Key, typename _Value,
806 typename _Alloc, typename _ExtractKey, typename _Equal,
807 typename _H1, typename _H2, typename _Hash, typename _RehashPolicy,
808 typename _Traits>

@Ablu Ablu added the Bug label Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant