fix(domain): R4.5 gate hardenings: self-check without the import size cap, Ref(0) safe, pdf-write implies pdf-read; §10.7 records the gate
This commit is contained in:
1 parent
d2376a4574
commit
b44dd80af2
4 files changed
+26
-9
No files matched your search
@@ -34,7 +34,7 @@ impl Objects {
|
||||
}
|
||||
|
||||
pub fn set(&mut self, at: Ref, body: Vec<u8>) {
|
||||
if let Some(slot) = self.bodies.get_mut(at.0 - 1) {
|
||||
if let Some(slot) = at.0.checked_sub(1).and_then(|i| self.bodies.get_mut(i)) {
|
||||
*slot = body;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user