Open
Description
Even following #1783, the following value type:
CS_VALUE_TYPE class DLL_API ValueType {
public:
std::string string_member;
};
can be constructed in an invalid state, e.g. by using ValueType v = default;
Following v.string_member = "...";
resulting reads will result in garbage being read.
A remedy could be a variable to track whether the object was initialized and if not initializing it whenever any operation is called on it.
Metadata
Metadata
Assignees
Labels
No labels