(module: &'a CompiledModule)
| 64 | } |
| 65 | |
| 66 | pub fn verify_module(module: &'a CompiledModule) -> PartialVMResult<()> { |
| 67 | let mut bounds_check = Self { |
| 68 | view: BinaryIndexedView::Module(module), |
| 69 | context: BoundsCheckingContext::Module, |
| 70 | }; |
| 71 | if bounds_check.view.module_handles().is_empty() { |
| 72 | let status = |
| 73 | verification_error(StatusCode::NO_MODULE_HANDLES, IndexKind::ModuleHandle, 0); |
| 74 | return Err(status); |
| 75 | } |
| 76 | bounds_check.verify_impl() |
| 77 | } |
| 78 | |
| 79 | fn verify_impl(&mut self) -> PartialVMResult<()> { |
| 80 | self.check_signatures()?; |
nothing calls this directly
no test coverage detected