MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / logMemoryOOB

Function logMemoryOOB

lib/executor/engine/refInstr.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void logMemoryOOB(const ErrCode &Code,
55 const Runtime::Instance::DataInstance &DataInst,
56 const uint32_t Idx, const uint32_t Length) noexcept {
57 if (Code == ErrCode::Value::MemoryOutOfBounds) {
58 spdlog::error(ErrInfo::InfoBoundary(
59 static_cast<uint64_t>(Idx), Length,
60 static_cast<uint32_t>(DataInst.getData().size())));
61 }
62}
63
64void logTableOOB(const ErrCode &Code,
65 const Runtime::Instance::ElementInstance &ElemInst,

Callers 2

EXPECTED_TRYFunction · 0.85
runArrayInitDataOpMethod · 0.85

Calls 4

InfoBoundaryClass · 0.85
errorFunction · 0.50
sizeMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected