Validate func type in aot loader (#3535)

Fix issue reported by Oss-fuzz test (#69629).
This commit is contained in:
liang.he
2024-06-18 14:23:32 +08:00
committed by GitHub
parent f096b2fa38
commit c19bc95391
5 changed files with 66 additions and 46 deletions

View File

@ -7,6 +7,7 @@
#define _WASM_LOADER_COMMON_H
#include "platform_common.h"
#include "../interpreter/wasm.h"
#ifdef __cplusplus
extern "C" {
@ -16,6 +17,12 @@ bool
wasm_memory_check_flags(const uint8 mem_flag, char *error_buf,
uint32 error_buf_size, bool is_aot);
bool
is_valid_value_type(uint8 value_tpye);
bool
is_valid_func_type(const WASMFuncType *func_type);
#ifdef __cplusplus
}
#endif