You need to pass a pointer to an array of bytes to `MCMemoryCopy`, not a StringRef (you actually want to copy `p_data` here).