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

Function logArrayOOB

lib/executor/engine/refInstr.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void logArrayOOB(const ErrCode &Code, const uint32_t Idx, const uint32_t Cnt,
27 const RefVariant &Ref) noexcept {
28 if (Code == ErrCode::Value::ArrayOutOfBounds) {
29 const auto *Inst = Ref.getPtr<Runtime::Instance::ArrayInstance>();
30 spdlog::error(ErrInfo::InfoBoundary(static_cast<uint64_t>(Idx), Cnt,
31 Inst->getLength()));
32 }
33}
34
35void logDoubleArrayOOB(const ErrCode &Code, const uint32_t Idx1,
36 const uint32_t Cnt1, const RefVariant &Ref1,

Callers 5

EXPECTED_TRYFunction · 0.85
runArraySetOpMethod · 0.85
runArrayFillOpMethod · 0.85
runArrayInitDataOpMethod · 0.85
runArrayInitElemOpMethod · 0.85

Calls 3

InfoBoundaryClass · 0.85
getLengthMethod · 0.80
errorFunction · 0.50

Tested by

no test coverage detected