Avoid mixing std::ptr::read/write_volatile() and std::ptr::copy()
jiangliu opened this issue · comments
Jiang Liu commented
The copy_slice() wrapper is used to access guest memory for most VolatileMemory methods, but there's an exception that copy_to_volatile_slice() uses std::ptr::copy(). The copy_to_volatile_slice() method should be refined to use copy_slice() so we never mix std::ptr::read/write_volatile() and std::ptr::copy()