diff options
| author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-10-12 10:17:52 +0200 |
|---|---|---|
| committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-10-14 12:13:05 +0200 |
| commit | a6cf8b34a834e5d16155f8bb3f33d57a4f87eb9e (patch) | |
| tree | df36849b93f70c2830cb8717df87809a06089fef /sql/sql_class.h | |
| parent | bc09362eb312eff5eb2203963d75f368fea3f4ad (diff) | |
| download | mariadb-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
