Skip to content

Assigning a default-constructed URI crashes #67

@cmbrandenburg

Description

@cmbrandenburg

Assigning a default-constructed URI to a non-default-constructed URI crashes.

TEST(uri_test, default_constructed_assignment_test) {
  network::uri instance("http://www.example.com/");
  instance = network::uri(); // <-- CRASHES HERE
  ASSERT_EQ(instance, network::uri());
}

This seems to be the case no matter what the destination URI is, so long as that URI is not empty.

Whereas, assigning a default-constructed URI to another default-constructed URI succeeds.

Metadata

Metadata

Assignees

No one assigned

    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