| 62 | } |
| 63 | |
| 64 | void 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 |
no test coverage detected