Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sel4vm, guest_ram: fix compare function
The compare function is used with qsort to sort the guest ram regions. However, the compare function was returning an int, when the region checked is a uintptr_t. Subtracting these values and returning an int can cause undefined behavior. This commit fixes the compare function such that the return is compatible with qsort. Signed-off-by: Chris Guikema <[email protected]>
- Loading branch information