Skip to content

Commit f68524f

Browse files
committed
Correct mapped range upper-bound trimming calculation
1 parent 4f72911 commit f68524f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/linux/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl Process for LinuxProcess {
260260
})
261261
.map(|(s, sz, perms)| {
262262
if s + sz > end {
263-
let diff = s - end;
263+
let diff = (s + sz) - end;
264264
(s, sz - diff as umem, perms)
265265
} else {
266266
(s, sz, perms)

0 commit comments

Comments
 (0)