This project is read-only.
1
Vote

CharacterData property is unsafe

description

The CharacterData creates an array on the heap which can be moved around by the garbage collector. Zeroing out the array will only destroy the last copy in memory, but older copies might still exist. It would be better to return an IntPtr or byte* to an unmanaged buffer.

comments