We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa564b commit eaa600eCopy full SHA for eaa600e
libafl_qemu/src/modules/usermode/snapshot.rs
@@ -270,7 +270,7 @@ impl SnapshotModule {
270
271
pub fn access(&mut self, addr: GuestAddr, size: usize) {
272
// ASSUMPTION: the access can only cross 2 pages
273
- debug_assert!(size > 0 && size <= SNAPSHOT_PAGE_SIZE);
+ debug_assert!(size <= SNAPSHOT_PAGE_SIZE);
274
let page = addr & SNAPSHOT_PAGE_MASK;
275
self.page_access(page);
276
let second_page = (addr + size as GuestAddr - 1) & SNAPSHOT_PAGE_MASK;
0 commit comments