From bf99a1b05d9b9cce114fab9d657f7598c6eb70fa Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Tue, 28 May 2024 15:34:09 +0200 Subject: [PATCH] fix `sto_emplace` --- src/ripple/app/hook/impl/applyHook.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ripple/app/hook/impl/applyHook.cpp b/src/ripple/app/hook/impl/applyHook.cpp index 741775af3..145d5f090 100644 --- a/src/ripple/app/hook/impl/applyHook.cpp +++ b/src/ripple/app/hook/impl/applyHook.cpp @@ -6599,6 +6599,7 @@ __sto_emplace( { size_t len = end - inject_end; memcpy(write_ptr + bytes_written, inject_end, len); + bytes_written += len; } out.resize(bytes_written);