Skip to content

Commit

Permalink
loader: Update for latest vm-memory changes
Browse files Browse the repository at this point in the history
The method GuestMemory::end_addr() was renamed.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
  • Loading branch information
rbradford authored and andreeaflorescu committed Jan 13, 2020
1 parent 6cf23a8 commit e5c6d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/mod.rs
Original file line number Diff line number Diff line change
@@ -398,7 +398,7 @@ pub fn load_cmdline<M: GuestMemory>(
let end = guest_addr
.checked_add(len as u64 + 1)
.ok_or(Error::CommandLineOverflow)?; // Extra for null termination.
if end > guest_mem.end_addr() {
if end > guest_mem.last_addr() {
return Err(Error::CommandLineOverflow)?;
}

0 comments on commit e5c6d66

Please sign in to comment.