mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-06 01:41:35 +00:00
fix buf checking in load_table_section (#4276)
Signed-off-by: Su Yihan <yihan.su@intel.com>
This commit is contained in:
parent
477d66d00f
commit
26aa4830e9
|
@ -3833,11 +3833,11 @@ load_table_section(const uint8 *buf, const uint8 *buf_end, WASMModule *module,
|
|||
uint8 flag;
|
||||
bool has_init = false;
|
||||
|
||||
CHECK_BUF(buf, buf_end, 1);
|
||||
CHECK_BUF(p, p_end, 1);
|
||||
flag = read_uint8(p);
|
||||
|
||||
if (flag == TABLE_INIT_EXPR_FLAG) {
|
||||
CHECK_BUF(buf, buf_end, 1);
|
||||
CHECK_BUF(p, p_end, 1);
|
||||
flag = read_uint8(p);
|
||||
|
||||
if (flag != 0x00) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user