Skip to content

Conversation

@JavanZhu
Copy link
Contributor

@JavanZhu JavanZhu commented Nov 26, 2021

Environment

  • cpu: armv7
  • platform: android

aot file content like following will cause runtime to crash in 32bit system(the value of p is overflow):

00 61 6F 74 03 00 00 00 00 00 00 00 60 2B 05 E3

malformed.aot.zip

@wenyongh
Copy link
Contributor

Environment

  • cpu: armv7
  • platform: android

aot file content like following will cause runtime to crash in 32bit system(the value of p is overflow):

00 61 6F 74 03 00 00 00 00 00 00 00 60 2B 05 E3

malformed.aot.zip

@JavanZhu Thanks for reporting the issue! Your fix might be not complete and some spec cases run failed. I updated have the patch according to my understanding, could you help review and test it?

@wenyongh wenyongh merged commit 212810b into bytecodealliance:main Nov 30, 2021
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
Fix possible integer overflow unchecked issue when checking
wasm/aot file format.
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

Successfully merging this pull request may close these issues.

2 participants