-
Feature Request
-
Resolution: Done
-
Critical
-
6.0.2.Final
-
None
In C# - C++ SWIG glue (swig/hotrodcs.i) the C++ ByteArray(unsigned char *, size_t) constructor gets called from C# ByteArray(byte[]) constructor with pointer to data created by PInvoke marshaller. The ByteArray stores this pointer, but the data are released after the constructor call.
Later, these data are used (the ByteArray is passed as argument to some functions) but the memory is already released, and the content is corrupt.