From d5c53dcfd2cd4e26d14604ebff8d67d9e16d3211 Mon Sep 17 00:00:00 2001 From: pwang200 <354723+pwang200@users.noreply.github.com> Date: Thu, 8 Jan 2026 16:14:49 -0500 Subject: [PATCH] fix Uninitialized import entries lead to undefined behavior During WASM Instantiation --- src/xrpld/app/wasm/detail/WasmiVM.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrpld/app/wasm/detail/WasmiVM.cpp b/src/xrpld/app/wasm/detail/WasmiVM.cpp index 82c502f63f..40ec5f81b6 100644 --- a/src/xrpld/app/wasm/detail/WasmiVM.cpp +++ b/src/xrpld/app/wasm/detail/WasmiVM.cpp @@ -415,6 +415,7 @@ ModuleWrapper::buildImports(StorePtr& s, ImportVec const& imports) "/" + std::to_string(importTypes.vec_.size), nullptr, j_); + throw std::runtime_error("Missing imports"); } return wimports;