Skip to content

fix: Protect mem consumption from null deref#4895

Open
lum1n0us wants to merge 1 commit intobytecodealliance:mainfrom
lum1n0us:fix/memory-consumption-null-deref
Open

fix: Protect mem consumption from null deref#4895
lum1n0us wants to merge 1 commit intobytecodealliance:mainfrom
lum1n0us:fix/memory-consumption-null-deref

Conversation

@lum1n0us
Copy link
Copy Markdown
Contributor

  • add debug assertions to wasm_get_module_inst_mem_consumption
  • add debug assertions to aot_get_module_inst_mem_consumption
  • nullify memories pointer after free in destruction path
  • nullify memories pointer after free in AOT destruction
  • docs: add precondition documentation for memory consumption functions

- add debug assertions to wasm_get_module_inst_mem_consumption
- add debug assertions to aot_get_module_inst_mem_consumption
- nullify memories pointer after free in destruction path
- nullify memories pointer after free in AOT destruction
- docs: add precondition documentation for memory consumption functions
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.

1 participant