add a validator for aot module (#3995)
- Add AOT module validation to ensure memory constraints are met - Enable AOT validator in build configuration and update related source files
This commit is contained in:
15
core/iwasm/aot/aot_validator.h
Normal file
15
core/iwasm/aot/aot_validator.h
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Intel Corporation. All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
*/
|
||||
|
||||
#ifndef _AOT_VALIDATOR_H_
|
||||
#define _AOT_VALIDATOR_H_
|
||||
|
||||
#include "aot_runtime.h"
|
||||
|
||||
bool
|
||||
aot_module_validate(const AOTModule *module, char *error_buf,
|
||||
uint32 error_buf_size);
|
||||
|
||||
#endif /* _AOT_VALIDATOR_H_ */
|
||||
Reference in New Issue
Block a user