From c99370e9f09e120897da6769c5be0da505a792e6 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Thu, 21 Apr 2022 12:25:51 +0000 Subject: [PATCH] todo: strict codesec and export checks when hook cleaner developed --- src/ripple/app/tx/impl/SetHook.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ripple/app/tx/impl/SetHook.cpp b/src/ripple/app/tx/impl/SetHook.cpp index 8fb98cbd9..b6417e085 100644 --- a/src/ripple/app/tx/impl/SetHook.cpp +++ b/src/ripple/app/tx/impl/SetHook.cpp @@ -1074,7 +1074,11 @@ validateCreateCode(SetHookCtx& ctx, STObject const& hookSetObj) else if (cbak_func_idx && *cbak_func_idx == j) maxInstrCountCbak = *valid; else - assert(false); + { + printf("code section: %d not hook_func_idx: %d or cbak_func_idx: %d\n", + j, *hook_func_idx, (cbak_func_idx ? *cbak_func_idx : -1)); + // assert(false); + } i = code_end;