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 d734c9b commit 32a2df9Copy full SHA for 32a2df9
src/frame_allocator.rs
@@ -111,7 +111,7 @@ impl<'a> FrameAllocator<'a> {
111
// Case: (r = `r`, R = `region`)
112
// ----rrrrrrrrrrr----
113
// --RRRR-------------
114
- r.len -= region.end_addr() - r.start_addr();
+ r.len = r.len.checked_sub(region.end_addr() - r.start_addr()).unwrap();
115
r.start_addr = region.end_addr();
116
} else if region.end_addr() >= r.end_addr() {
117
0 commit comments