1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 03:24:26 +00:00

Use a static array for work submission data instead of stack memory.

This commit is contained in:
Con Kolivas 2012-10-05 19:03:28 +10:00
parent c4aa8d267c
commit 687fed1de9

View File

@ -2758,8 +2758,8 @@ static void *submit_work_thread(void *userdata)
if (work->stratum) {
struct stratum_share *sshare = calloc(sizeof(struct stratum_share), 1);
uint32_t *hash32 = (uint32_t *)work->hash, nonce;
char *s = alloca(1024);
char *noncehex;
char s[1024];
memcpy(&sshare->work, work, sizeof(struct work));