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 6cf23a8 commit e5c6d66Copy full SHA for e5c6d66
src/loader/mod.rs
@@ -398,7 +398,7 @@ pub fn load_cmdline<M: GuestMemory>(
398
let end = guest_addr
399
.checked_add(len as u64 + 1)
400
.ok_or(Error::CommandLineOverflow)?; // Extra for null termination.
401
- if end > guest_mem.end_addr() {
+ if end > guest_mem.last_addr() {
402
return Err(Error::CommandLineOverflow)?;
403
}
404
0 commit comments