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

Function logTableOOB

lib/executor/engine/refInstr.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void logTableOOB(const ErrCode &Code,
65 const Runtime::Instance::ElementInstance &ElemInst,
66 const uint32_t Idx, const uint32_t Length) noexcept {
67 if (Code == ErrCode::Value::TableOutOfBounds) {
68 auto ElemSrc = ElemInst.getRefs();
69 spdlog::error(ErrInfo::InfoBoundary(static_cast<uint64_t>(Idx), Length,
70 static_cast<uint32_t>(ElemSrc.size())));
71 }
72}
73
74} // namespace
75

Callers 2

EXPECTED_TRYFunction · 0.85
runArrayInitElemOpMethod · 0.85

Calls 4

InfoBoundaryClass · 0.85
errorFunction · 0.50
getRefsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected