Skip to content

A bug in ckecking data count section #4032

Open
@erxiaozhou

Description

@erxiaozhou

In the test case, the actual number of data segments (0) does not match the length declared in the data count section (1). According to the specification, "the module is malformed". However, WAMRs in JIT mode, fast JIT mode, and interpreter mode do not raise an exception as expected.

Test case

nop_0SSPBPL_110_17319372015142238.zip

Your environment

  • Host OS: Ubuntu 20.04
  • Commit Id: 082cfa1

Steps to reproduce

  1. build WAMR on fast interpreter mode / classic interpreter mode / JIT mode / fast JIT mode
  2. execute the command
iwasm --heap-size=0 -f "to_test" <test_case>

Expected behavior

An exception indicating that "data count and data section have an inconsistent length"

Actual behavior

No exception

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