mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
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
This commit is contained in:
@@ -1411,7 +1411,7 @@ void Type_handler_inet6::sort_length(THD *thd,
|
||||
const Type_std_attributes *item,
|
||||
SORT_FIELD_ATTR *attr) const
|
||||
{
|
||||
attr->length= Inet6::binary_length();
|
||||
attr->original_length= attr->length= Inet6::binary_length();
|
||||
attr->suffix_length= 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user