mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-11601 Out-of-bounds string access in create_schema_table()
in Item_partition_func_safe_string(THD *thd, const char *name_arg, uint length, CHARSET_INFO *cs= NULL), the 'name_arg' is the value of the string constant and 'length' is the length of this constant, so length == strlen(name_arg).
This commit is contained in:
parent
ef8003eb9a
commit
f797ea7124
1 changed files with 1 additions and 1 deletions
|
@ -3206,7 +3206,7 @@ class Item_blob :public Item_partition_func_safe_string
|
|||
{
|
||||
public:
|
||||
Item_blob(THD *thd, const char *name_arg, uint length):
|
||||
Item_partition_func_safe_string(thd, name_arg, length, &my_charset_bin)
|
||||
Item_partition_func_safe_string(thd, name_arg, strlen(name_arg), &my_charset_bin)
|
||||
{ max_length= length; }
|
||||
enum Type type() const { return TYPE_HOLDER; }
|
||||
enum_field_types field_type() const { return MYSQL_TYPE_BLOB; }
|
||||
|
|
Loading…
Reference in a new issue