prevent the modification of vtables
This commit is contained in:
parent
5c47e3dbd8
commit
3c5f595d45
1 changed files with 2 additions and 0 deletions
|
|
@ -96,6 +96,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
self.memory.freeze(vtable.alloc_id)?;
|
||||
|
||||
Ok(vtable)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue