Closed
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