From b3f91f03a37e881966801c01d811294326a2f63b Mon Sep 17 00:00:00 2001 From: "pwnh4 (@loicttn)" Date: Fri, 13 Dec 2024 16:31:35 +0100 Subject: [PATCH] fix(ocv2): getEthDisplayableAddress buffer size / timeout issue --- src/provide_parameter/ocv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/provide_parameter/ocv2.c b/src/provide_parameter/ocv2.c index 6e744ff..8656aec 100644 --- a/src/provide_parameter/ocv2.c +++ b/src/provide_parameter/ocv2.c @@ -215,7 +215,7 @@ void handle_v2_multiclaim(ethPluginProvideParameter_t *msg, context_t *context) case V2_MULTICLAIM_EXIT_QUEUES__ITEMS: { uint8_t buffer[ADDRESS_LENGTH]; copy_address(buffer, msg->parameter, sizeof(buffer)); - char address_buffer[ADDRESS_STR_LEN]; + char address_buffer[ADDRESS_STR_LEN + 1]; getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), 0); // we add a check to make sure we know the exit queue addresses // that will be called in the multiclaim tx