• gshchepa/uchum@gleb.loc's avatar
    Fixed bug #30120. · 1eb20fc0
    gshchepa/uchum@gleb.loc authored
    SP with local variables with non-ASCII names crashed the server.
    
    The server replaces SP local variable names with NAME_CONST calls
    when putting statements into the binary log. It used UTF8-encoded
    item names as variable names for the replacement inside NAME_CONST
    calls. However, statement string may be encoded by any
    known character set by the SET NAMES statement.
    The server used byte length of UTF8-encoded names to increment
    the position in the query string that led to array index overrun.
    1eb20fc0
item.h 83.2 KB