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

memory check #1911

Merged
merged 8 commits into from
Feb 8, 2024
Merged

memory check #1911

merged 8 commits into from
Feb 8, 2024

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Dec 28, 2023

Referenced issues

Description of the Change

  • check wasm memory range.
  • fix offchain randomness.
  • (wasmedge) assert and BOOST_ASSERT don't work.
  • simplify memory.
  • SpanAdl for comparing (<, ==, <=>, ...) std::span.
  • simplify tests.

Benefits

Possible Drawbacks

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Copy link
Contributor

@igor-egorov igor-egorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this PR will automatically close the referenced issue. Could you please create a separate issue for remaining TODOs?

@turuslan
Copy link
Contributor Author

Merging this PR will automatically close the referenced issue. Could you please create a separate issue for remaining TODOs?

No, it won't, because there are no keywords like resolves/closes

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>

# Conflicts:
#	core/runtime/common/memory_allocator.hpp
#	core/runtime/wasm_edge/module_factory_impl.hpp
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan changed the title wasmedge check memory check Jan 22, 2024
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
core/runtime/wasm_edge/memory_impl.cpp Outdated Show resolved Hide resolved
core/runtime/wasm_edge/memory_impl.hpp Outdated Show resolved Hide resolved
core/common/span_adl.hpp Show resolved Hide resolved
core/runtime/binaryen/runtime_external_interface.hpp Outdated Show resolved Hide resolved
core/runtime/memory.hpp Outdated Show resolved Hide resolved
core/runtime/memory.hpp Outdated Show resolved Hide resolved
core/runtime/common/memory_error.hpp Show resolved Hide resolved
Signed-off-by: turuslan <turuslan.devbox@gmail.com>

# Conflicts:
#	core/runtime/wasm_edge/CMakeLists.txt
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested a review from Harrm February 7, 2024 12:50
@turuslan turuslan merged commit aa9c3e9 into master Feb 8, 2024
12 of 13 checks passed
@turuslan turuslan deleted the audit/22-wasmedge branch February 8, 2024 08:35
kamilsa added a commit that referenced this pull request Feb 18, 2024
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.

3 participants