diff options
author | Alexander Barkov <bar@mariadb.com> | 2020-05-12 19:45:21 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2020-05-12 19:45:21 +0400 |
commit | 9f20968169e21fcf8941041a8a7ce06013a79bd9 (patch) | |
tree | ae3fa2cf852ab1a2f2dd393851d6d37a801fa421 /sql/message.mc | |
parent | db537a8372dea05ddfe10fbd5c317214658bfdbd (diff) | |
download | mariadb-git-9f20968169e21fcf8941041a8a7ce06013a79bd9.tar.gz |
MDEV-20261 NULL passed to String::eq, SEGV, server crash, regression in 10.4
Type_handler_xxx::Item_const_eq() can handle only non-NULL values.
The code in Item_basic_value::eq() did not take this into account.
Adding a test to detect three different combinations:
- Both values are NULLs, return true.
- Only one value is NULL, return false.
- Both values are not NULL, call Type_handler::Item_const_eq()
to check equality.
Diffstat (limited to 'sql/message.mc')
0 files changed, 0 insertions, 0 deletions