Commit b3250ab3 authored by Kentoku SHIBA's avatar Kentoku SHIBA

MENT-787 Server from bb-10.5-MENT-30 crashes upon Spider installation

It looks buffer over flow of spider_unique_id_buf. It requires to analyze on reproducing environment, but I extend this first.
parent 0b7fe26e
......@@ -406,7 +406,7 @@ extern ulonglong spider_free_mem_count[SPIDER_MEM_CALC_LIST_NUM];
static char spider_wild_many = '%', spider_wild_one = '_',
spider_wild_prefix='\\';
static char spider_unique_id_buf[1 + 12 + 1 + 16 + 1 + 1];
static char spider_unique_id_buf[1 + 12 + 1 + (16 * 2) + 1 + 1];
LEX_CSTRING spider_unique_id;
// for spider_open_tables
......@@ -7244,7 +7244,7 @@ int spider_db_init(
) {
int error_num = HA_ERR_OUT_OF_MEM, roop_count;
uint dbton_id = 0;
char addr[6];
uchar addr[6];
handlerton *spider_hton = (handlerton *)p;
DBUG_ENTER("spider_db_init");
spider_hton_ptr = spider_hton;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment