Commit 0984b8ed authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-25420 JSON_TABLE: ASAN heap-buffer-overflow in Protocol::net_store_data...

MDEV-25420 JSON_TABLE: ASAN heap-buffer-overflow in Protocol::net_store_data or consequent failures.

error in the patch fixed.
parent 91cd3c8f
...@@ -18293,10 +18293,10 @@ Create_tmp_table::Create_tmp_table(ORDER *group, bool distinct, ...@@ -18293,10 +18293,10 @@ Create_tmp_table::Create_tmp_table(ORDER *group, bool distinct,
static void add_null_bits_for_field(const Field *f, uint *null_counter) static void add_null_bits_for_field(const Field *f, uint *null_counter)
{ {
if (!f->flags & NOT_NULL_FLAG) if (!(f->flags & NOT_NULL_FLAG))
(*null_counter)++; (*null_counter)++;
if (f->type() != MYSQL_TYPE_BIT) if (f->type() == MYSQL_TYPE_BIT)
(*null_counter)+= f->field_length & 7; (*null_counter)+= f->field_length & 7;
} }
......
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