summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-10-12 10:17:52 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-10-14 12:13:05 +0200
commita6cf8b34a834e5d16155f8bb3f33d57a4f87eb9e (patch)
treedf36849b93f70c2830cb8717df87809a06089fef /sql/sql_class.h
parentbc09362eb312eff5eb2203963d75f368fea3f4ad (diff)
downloadmariadb-git-a6cf8b34a834e5d16155f8bb3f33d57a4f87eb9e.tar.gz
MDEV-26806 Server crash in Charset::charset / Item_func_natural_sort_key::val_str
The reason for crash is that natural_sort_key(release_lock('a')) would evaluate release_lock() twice, once in Item::is_null() and another time in Item::val_str(). Second time it returns NULL, since lock was already released. Fixed to prevent double evaluation.
Diffstat (limited to 'sql/sql_class.h')
0 files changed, 0 insertions, 0 deletions