Using `.ptr` and accessing the array is a bug.