summaryrefslogtreecommitdiff
path: root/strings/uca-dump.c
diff options
context:
space:
mode:
authorDmitry Shulga <dmitry.shulga@mariadb.com>2021-01-14 14:31:20 +0700
committerDmitry Shulga <dmitry.shulga@mariadb.com>2021-01-14 14:31:20 +0700
commitf130adbf35b5b8ef7ed091549ed764982801480c (patch)
tree222a28aa10b51fbde3b4289478cab7010b2ed744 /strings/uca-dump.c
parentfb9a9599bc9faed7b2f4860cb5e2bc8c597aacef (diff)
downloadmariadb-git-f130adbf35b5b8ef7ed091549ed764982801480c.tar.gz
MDEV-23666: Assertion `m_cpp_buf <= ptr && ptr <= m_cpp_buf + m_buf_length' failed in Lex_input_stream::body_utf8_append
On parsing statements for which a starting backtick (`) delimiter doesn't have a corresponding ending backtick, a current pointer to a position inside a pre-processed buffer could go beyond the end of the buffer. This bug report caused by the commit d4967659032b18a5504198b41dd3d0a1813d79ef "MDEV-22022 Various mangled SQL statements will crash 10.3 to 10.5 debug builds". In order to fix the issue both pointers m_ptr and m_cpp_ptr must be rolled back to previous position in raw input and pre-processed input streams correspondingly in case end of query reached during parsing.
Diffstat (limited to 'strings/uca-dump.c')
0 files changed, 0 insertions, 0 deletions