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

Function logOutOfRange

lib/validator/formchecker.cpp:20–25  ·  view source on GitHub ↗

Helper function for printing an error log for an index out of range.

Source from the content-addressed store, hash-verified

18
19// Helper function for printing an error log for an index out of range.
20auto logOutOfRange(ErrCode Code, ErrInfo::IndexCategory Cate, uint32_t Idx,
21 uint32_t Bound) {
22 spdlog::error(Code);
23 spdlog::error(ErrInfo::InfoForbidIndex(Cate, Idx, Bound));
24 return Unexpect(Code);
25}
26
27// Helper function for extracting address type to TypeCode.
28TypeCode convAddrTypeToTypeCode(const AddressType AT) noexcept {

Callers 1

checkInstrMethod · 0.85

Calls 3

InfoForbidIndexClass · 0.85
UnexpectFunction · 0.85
errorFunction · 0.50

Tested by

no test coverage detected