Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in ckecking data count section #4032

Open
erxiaozhou opened this issue Jan 17, 2025 · 0 comments
Open

A bug in ckecking data count section #4032

erxiaozhou opened this issue Jan 17, 2025 · 0 comments

Comments

@erxiaozhou
Copy link

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_0LM_592_17171016522810388.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant