Skip to content

Most C++ types in msquic.hpp are not respecting the rule of 5 #5124

@guhetier

Description

@guhetier

Describe the bug

Many C++ wrapper types in msquic.hpp (and other C++ headers) need copy / move constructors and operator= to be deleted or implemented.

Affected OS

  • Windows
  • Linux
  • macOS
  • Other (specify below)

Additional OS information

No response

MsQuic version

main

Steps taken to reproduce bug

Code issue, no repro.

Expected behavior

The API user cannot cause a double free by copying / moving an object.

Actual outcome

The API user would corrupt / double free memory if they copy / move some C++ wrappers.

Additional details

No response

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions