• Monty's avatar
    MDEV-22703 DEFAULT() on a BLOB column can overwrite the default record · 8db5274d
    Monty authored
    This can cause crashes when accessing already released memory
    
    The issue was the Item_default created a internal field, pointing to
    share->default_values, to be used with the DEFAULT() function.
    This does not work for BLOB fields as these are freed at end of query.
    Fixed by storing BLOB field data inside and area allocated by
    Item_default_value,  like we do for nondeterministic default values.
    8db5274d
item.cc 292 KB