Skip to content

c_src/bloom_filter.hpp:74: bad operator = ? #16

@dcb314

Description

@dcb314

c_src/bloom_filter.hpp:74]: (warning) 'operator=' should check for assignment to self to avoid problems with dynamic memory.

Source code is

bloom_filter& operator = (const bloom_filter& filter)
{
salt_count_ = filter.salt_count_;
table_size_ = filter.table_size_;

There should be a check first for this != &filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions