Skip to content

Commit 0984b8e

Browse files
author
Alexey Botchkov
committed
MDEV-25420 JSON_TABLE: ASAN heap-buffer-overflow in Protocol::net_store_data or consequent failures.
error in the patch fixed.
1 parent 91cd3c8 commit 0984b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/sql_select.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18293,10 +18293,10 @@ Create_tmp_table::Create_tmp_table(ORDER *group, bool distinct,
1829318293

1829418294
static void add_null_bits_for_field(const Field *f, uint *null_counter)
1829518295
{
18296-
if (!f->flags & NOT_NULL_FLAG)
18296+
if (!(f->flags & NOT_NULL_FLAG))
1829718297
(*null_counter)++;
1829818298

18299-
if (f->type() != MYSQL_TYPE_BIT)
18299+
if (f->type() == MYSQL_TYPE_BIT)
1830018300
(*null_counter)+= f->field_length & 7;
1830118301
}
1830218302

0 commit comments

Comments
 (0)