You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let virt = self.offset + frame.start_address().as_u64();
The physical address space is larger than the virtual one, so this can overflow on some architectures (e.g. see #289). It can also overflow when offset is large. Rust doesn't do overflow checking in release mode by default, so we should use checked_add here to ensure that an overflow always leads to a panic.
The text was updated successfully, but these errors were encountered:
Here:
x86_64/src/structures/paging/mapper/offset_page_table.rs
Line 53 in f8a3d70
The physical address space is larger than the virtual one, so this can overflow on some architectures (e.g. see #289). It can also overflow when
offset
is large. Rust doesn't do overflow checking in release mode by default, so we should usechecked_add
here to ensure that an overflow always leads to a panic.The text was updated successfully, but these errors were encountered: