diff options
author | Monty <monty@mariadb.org> | 2020-05-15 16:15:49 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-05-23 12:29:10 +0300 |
commit | c4bf4b7aefcd95b898ea9c8714d09fc1045f304c (patch) | |
tree | f45c4aefb9e22ecadf8e2e8ac19d0673c88a8e69 /sql/item_subselect.cc | |
parent | dcc0baf5405b220384b9e1e07d8b9e3ff97b60f4 (diff) | |
download | mariadb-git-c4bf4b7aefcd95b898ea9c8714d09fc1045f304c.tar.gz |
Fixed access to undefined memory found by valgrind and MSAN
When my_vsnprintf() is patched, the code protected disabled with
'WAITING_FOR_BUGFIX_TO_VSPRINTF' should be enabled again. Also all %b
formats in this patch should be revert to %s again
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index be78f333951..10218f392c7 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -728,8 +728,8 @@ bool Item_subselect::exec() QT_WITHOUT_INTRODUCERS)); push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE, - ER_UNKNOWN_ERROR, "DBUG: Item_subselect::exec %.*s", - print.length(),print.c_ptr()); + ER_UNKNOWN_ERROR, "DBUG: Item_subselect::exec %.*b", + print.length(),print.ptr()); ); /* Do not execute subselect in case of a fatal error |