From f6bb87a4f8c235d2a2484576d565f6d6591b57ec Mon Sep 17 00:00:00 2001 From: Manik Jain Date: Tue, 19 Nov 2024 16:35:34 +0000 Subject: [PATCH] Encode input data regions --- src/test_suite/syscall/codec_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test_suite/syscall/codec_utils.py b/src/test_suite/syscall/codec_utils.py index 93423e6..659492b 100644 --- a/src/test_suite/syscall/codec_utils.py +++ b/src/test_suite/syscall/codec_utils.py @@ -25,6 +25,11 @@ def encode_output(effects: vm_pb.SyscallEffects): effects.stack = encode_hex_compact(effects.stack) effects.rodata = encode_hex_compact(effects.rodata) + for i in range(len(effects.input_data_regions)): + effects.input_data_regions[i].content = encode_hex_compact( + effects.input_data_regions[i].content + ) + def decode_input(input: vm_pb.SyscallContext): instr_ctx = invoke_pb.InstrContext()