• Tor Didriksen's avatar
    Bug#18928848 II. MALLOC OF UNINITIALIZED MEMORY SIZE · 63a6af32
    Tor Didriksen authored
    Several string functions have optimizations for constant
    sub-expressions which lead to setting max_length == 0.
    
    For subqueries, where we need a temporary table to holde the result,
    we need to ensure that we use a VARCHAR(0) column rather than a
    CHAR(0) column when such expressions take part in grouping.
    With CHAR(0) end_update() may write garbage into the next field.
    63a6af32
item.cc 232 KB