Closed dvicini closed 3 months ago
Minor change to switch to std::unique_ptr<char[]> in the stream bindings. The current code produces undefined behavior by using std::unique_ptr<char> tmp(new char[size]);. This causes a mismatch between new[] and delete (without []) operators
std::unique_ptr<char[]>
std::unique_ptr<char> tmp(new char[size]);
Minor change to switch to
std::unique_ptr<char[]>
in the stream bindings. The current code produces undefined behavior by usingstd::unique_ptr<char> tmp(new char[size]);
. This causes a mismatch between new[] and delete (without []) operators