jkolb/Lilliput

Lifetime of the pointer retrieved from a ByteBuffer can outlive the ByteBuffer

jkolb opened this issue · 0 comments

I just remembered that Swift wants to be more aggressive about cleaning up memory when not in use. This means if you subscript a ByteBuffer there is currently no guarantee the pointer retrieved is valid because the ByteBufffer could have been deallocated early.