In the following sscanf calls, '%64s' requires 65 bytes.
|
ret = sscanf(buffer, "%c %64s", &result[i].cmd, result[i].key); |
|
ret = sscanf(buffer, |
|
"%c %64s %lu\n", |
|
&result[i].cmd, |
|
result[i].key, |
|
&result[i].range_len); |
But the length of result[i].key is only 24 bytes.
|
typedef struct ycsb_op { |
|
char cmd; |
|
char key[YCSB_KEY_SIZE]; |
Please either modify the sscanf format specifier, or make YCSB_KEY_SIZE larger.
In the following sscanf calls, '%64s' requires 65 bytes.
splinterdb/tests/functional/ycsb_test.c
Line 584 in 6a2348c
splinterdb/tests/functional/ycsb_test.c
Lines 598 to 602 in 6a2348c
But the length of
result[i].keyis only 24 bytes.splinterdb/tests/functional/ycsb_test.c
Lines 244 to 246 in 6a2348c
splinterdb/tests/functional/ycsb_test.c
Line 17 in 6a2348c
Please either modify the sscanf format specifier, or make YCSB_KEY_SIZE larger.