• kaa@polly.(none)'s avatar
    Fix for bug #31174: "Repair" command on MyISAM crashes with small · f80541e3
    kaa@polly.(none) authored
    myisam_sort_buffer_size.
    
    An incorrect length of the sort buffer was used when calculating the
    maximum number of keys. When myisam_sort_buffer_size is small enough,
    this could result in the number of keys < number of
    BUFFPEK structures which in turn led to use of uninitialized BUFFPEKs.
    
    Fixed by correcting the buffer length calculation.
    f80541e3
repair.test 3.76 KB