text and increasing a buffer

This commit is contained in:
iceman1001 2023-07-24 03:15:14 +02:00
commit 10504ae4fd
2 changed files with 18 additions and 14 deletions

View file

@ -415,7 +415,7 @@ static bool read_bench_data(statelist_t *test_candidates) {
// read 4 bytes of data ?
bytes_read = fread(&nonces_to_bruteforce, 1, sizeof(uint32_t), benchfile);
if (bytes_read != sizeof(uint32_t)) {
if (bytes_read != sizeof(uint32_t) || (nonces_to_bruteforce >= 256)) {
fclose(benchfile);
return false;
}