mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-25420 JSON_TABLE: ASAN heap-buffer-overflow in Protocol::net_store_data or consequent failures.
error in the patch fixed.
This commit is contained in:
@ -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)
|
||||
{
|
||||
if (!f->flags & NOT_NULL_FLAG)
|
||||
if (!(f->flags & NOT_NULL_FLAG))
|
||||
(*null_counter)++;
|
||||
|
||||
if (f->type() != MYSQL_TYPE_BIT)
|
||||
if (f->type() == MYSQL_TYPE_BIT)
|
||||
(*null_counter)+= f->field_length & 7;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user