diff options
| author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2023-04-17 17:51:34 +0530 |
|---|---|---|
| committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2023-04-26 15:15:47 +0530 |
| commit | 7321c71aa187ac55a248e68142df5606249a556e (patch) | |
| tree | 9dbb584bc5a111ec2cbb5744368e5ef73b59d678 /plugin/handler_socket/libhsclient/fatal.cpp | |
| parent | 4b67ff3b256a78994cb23dc4aa2ba531bbb06070 (diff) | |
| download | mariadb-git-7321c71aa187ac55a248e68142df5606249a556e.tar.gz | |
MDEV-31032: UBSAN|downcast of address X which does not point to an
object of type 'Item_string' in sql/json_schema.cc
Analysis: make_string_literal() returns pointer of type
Item_basic_constant which is converted to pointer of type Item_string. Now,
Item_string is base class of Item_basic_constant, so the error about
downcasting.
Fix: using constructor of Item_string type directly instead of
downcasting would be more appropriate.
Diffstat (limited to 'plugin/handler_socket/libhsclient/fatal.cpp')
0 files changed, 0 insertions, 0 deletions
