Skip to content

uri::uri copy constructor #104

Closed
Closed
@maxim-ky

Description

Hi everyone !

boost::network::uri::uri copy constructor doesn't work properly.

Let's see source ( uri.hpp:56 )

uri(const uri &other)
        : uri_(other.uri_),
          uri_parts_(other.uri_parts_),
          is_valid_(other.is_valid_) {

    }

Field uri_parts_ referred to uri_ because contain iterators from it. After copying new uri_parts_ still referred to old uri_. It's produce valgrind warnings and possible segfault after destroying old uri object.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions