1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-20349: Assertion `to_len >= 8' failed in convert_to_printable

Use convert_to_printable function to write only non-empty ranges to the optimizer trace
This commit is contained in:
Varun Gupta
2019-08-16 16:49:12 +05:30
parent c221bcdce7
commit 4d5382504d
3 changed files with 57 additions and 0 deletions

View File

@ -1204,6 +1204,8 @@ size_t convert_to_printable_required_length(uint len)
bool String::append_semi_hex(const char *s, uint len, CHARSET_INFO *cs)
{
if (!len)
return false;
size_t dst_len= convert_to_printable_required_length(len);
if (reserve(dst_len))
return true;