From 80283f8ed7bb7c347efafe9863b77c3163fad69a Mon Sep 17 00:00:00 2001 From: Jesse Taube Date: Mon, 14 Aug 2023 22:02:20 -0400 Subject: [PATCH] Fix heap out of bounds fault --- equi/equi-stratum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equi/equi-stratum.cpp b/equi/equi-stratum.cpp index 2670fbcb5..ae2e0d967 100644 --- a/equi/equi-stratum.cpp +++ b/equi/equi-stratum.cpp @@ -292,7 +292,7 @@ bool equi_stratum_submit(struct pool_infos *pool, struct work *work) } cbin2hex(solhex, (const char*) work->extra, 1347); - char* solHexRestore = (char*) calloc(128, 1); + char* solHexRestore = (char*) calloc(129, 1); cbin2hex(solHexRestore, (const char*)&work->solution[8], 64); memcpy(&solhex[6+16], solHexRestore, 128);