Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Limit amount of memory used during snapshot deserialization
When switching from Versionize to bincode in firecracker-microvm#4230, we accidentally dropped a check limiting how much memory the deserialization routine can allocate [[1]]. This commit reimplements this check for the new bincode-based deserialization routine, with a limit matching that of the old Versionize check. [1]: https://github.com/firecracker-microvm/versionize/blob/main/src/primitives.rs#L14C33-L14C43 Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
- Loading branch information