Skip to content

About AOT memory access boundary check #246

@kkdomono

Description

@kkdomono

for release: WAMR-04-15-2020
in core/iwasm/aot/aot_runtime.c
image
should it be:

app_offset < module_inst->heap_base_offset
app_offset + (int32)size >= (int32)module_inst->memory_data_size)

image
should it be:

module_inst->heap_base_offset <= app_offset

Since memory access for [0 -> size -1] is valid, is it right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions