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

append \0 to every name string in aot name section #3249

Merged

Conversation

lum1n0us
Copy link
Collaborator

Since strings in .name section in .wasm is not c-style, need to append a \0 to strings in .name section in .aot when emitting.

@lum1n0us lum1n0us marked this pull request as ready for review March 24, 2024 00:55
core/iwasm/compilation/aot_emit_aot_file.c Outdated Show resolved Hide resolved
core/iwasm/compilation/aot_emit_aot_file.c Show resolved Hide resolved
core/iwasm/compilation/aot_emit_aot_file.c Outdated Show resolved Hide resolved
core/iwasm/compilation/aot_emit_aot_file.c Show resolved Hide resolved
core/iwasm/compilation/aot_emit_aot_file.c Outdated Show resolved Hide resolved
@lum1n0us lum1n0us force-pushed the fix/aot_name_section_trailing_0 branch 3 times, most recently from af251d6 to d7b4b80 Compare March 26, 2024 02:55
@lum1n0us lum1n0us force-pushed the fix/aot_name_section_trailing_0 branch from d7b4b80 to 28d2dba Compare March 26, 2024 03:34
Since strings in .name section in .wasm is not c-style, need to append
a `\0` to strings in .name section in .aot when emitting.
@lum1n0us lum1n0us force-pushed the fix/aot_name_section_trailing_0 branch from 28d2dba to e487f2a Compare March 26, 2024 05:28
@wenyongh wenyongh merged commit 498eb5d into bytecodealliance:main Mar 26, 2024
384 checks passed
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…e#3249)

Since strings in .name section in .wasm is not c-style, need to append
a `\0` to each string in .name section in AOT file when emitting.
@lum1n0us lum1n0us deleted the fix/aot_name_section_trailing_0 branch May 31, 2024 03:19
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.

None yet

2 participants