Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Fix read beyond stack size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Sep 20, 2016
1 parent f76349e commit 1a208d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver-icarus.c
Expand Up @@ -1190,7 +1190,7 @@ static struct cgpu_info *icarus_detect_one(struct libusb_device *dev, struct usb

const char golden_nonce[] = "000187a2";
const uint32_t golden_nonce_val = 0x000187a2;
unsigned char nonce_bin[ICARUS_READ_SIZE];
unsigned char nonce_bin[ICARUS_BUF_SIZE];
struct ICARUS_WORK workdata;
char *nonce_hex;
int baud, uninitialised_var(work_division), uninitialised_var(fpga_count);
Expand Down Expand Up @@ -1508,7 +1508,7 @@ static struct cgpu_info *rock_detect_one(struct libusb_device *dev, struct usb_f

const char golden_nonce[] = "000187a2";
const uint32_t golden_nonce_val = 0x000187a2;
unsigned char nonce_bin[ROCK_READ_SIZE];
unsigned char nonce_bin[ICARUS_BUF_SIZE];
struct ICARUS_WORK workdata;
char *nonce_hex;
struct cgpu_info *icarus;
Expand Down

0 comments on commit 1a208d7

Please sign in to comment.