Skip to content

Commit eaa600e

Browse files
forky2tokatoka
andauthored
libafl_qemu: access() size can be zero. (#3038)
Co-authored-by: Dongjia "toka" Zhang <[email protected]>
1 parent 6fa564b commit eaa600e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libafl_qemu/src/modules/usermode/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl SnapshotModule {
270270

271271
pub fn access(&mut self, addr: GuestAddr, size: usize) {
272272
// ASSUMPTION: the access can only cross 2 pages
273-
debug_assert!(size > 0 && size <= SNAPSHOT_PAGE_SIZE);
273+
debug_assert!(size <= SNAPSHOT_PAGE_SIZE);
274274
let page = addr & SNAPSHOT_PAGE_MASK;
275275
self.page_access(page);
276276
let second_page = (addr + size as GuestAddr - 1) & SNAPSHOT_PAGE_MASK;

0 commit comments

Comments
 (0)