diff options
author | zbdba <875825800@qq.com> | 2020-07-29 22:48:53 +0800 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2020-07-31 10:05:30 +1000 |
commit | 17994c9eb6b4ed296224db5293c21a2e383a1c10 (patch) | |
tree | bf939105a3298319d6676e16494afcef8806ec50 /storage/xtradb/ha | |
parent | f99de8915e8f9109384d1f197ca69c747487cb48 (diff) | |
download | mariadb-git-bb-10.5-MDEV-23299-danielblack-pr-1643.tar.gz |
MDEV-23299: Bad data in mysql.func can cause crashbb-10.5-MDEV-23299-danielblack-pr-1643
udf_init() can crash when the name field is empty.
We correct this by applying CHECK column constraints on
columns in the mysql.func tables.
The constrains are as follows:
* name cannot be an empty string;
* ret, the return type can be;
* STRING_RESULT(0),
* REAL_RESULT(1),
* INT_RESULT(2),
* and DECIMAL_RESULT(4);
* but not ROW_RESULT(3) or TIME_RESULT(5).
* dl, cannot be empty string
Upgrades ensure that any invalid functions are deleted.
closes #1643
Diffstat (limited to 'storage/xtradb/ha')
0 files changed, 0 insertions, 0 deletions