nutanix / libvfio-user

framework for emulating devices in userspace
BSD 3-Clause "New" or "Revised" License
162 stars 51 forks source link

fix: CRC calculation in client sample #750

Closed w-henderson closed 1 year ago

w-henderson commented 1 year ago

The previous implementation was using the last CRC value as the initialisation bytes for calculating the new CRC each iteration of the fake guest. This made it impossible to verify the CRC, so I've changed it to always use 0 as the initialisation value.