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

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

@Ablu

Description

@Ablu

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions