rust-vmm / vmm-sys-util

Helpers and utilities used by multiple rust-vmm components and VMMs
BSD 3-Clause "New" or "Revised" License
78 stars 64 forks source link

Harden FamStructWrapper against integer overflows #205

Closed roypat closed 1 year ago

roypat commented 1 year ago

Add some additional checks around integer overflows when multiplying/casting, to ensure that code added in the future does not trigger potential overflow bugs.

Requirements

Before submitting your PR, please make sure you addressed the following requirements: