seL4_projects_libs icon indicating copy to clipboard operation
seL4_projects_libs copied to clipboard

Bug fixes and readability improvements to guest memory handling

Open hlyytine opened this issue 1 year ago • 0 comments

  • Fix behaviour (iterator resetting, return value) in map_vm_memory_reservation()
  • Avoid potential integer overflows, no matter how theoretical they may be
  • Remove duplicate code
  • Write complex comparisons in "simple English"

As far as I can see, the only potential side effect of these changes is that mapping done by map_vm_memory_reservation() is no longer allowed to overflow the region. But I can't think of situation where that could anything else than a bug.

hlyytine avatar May 26 '23 08:05 hlyytine