• Marko Mäkelä's avatar
    MDEV-16045: Fix a heap allocation · b2f56085
    Marko Mäkelä authored
    Since commit baa5a43d
    changed the allocation of log_t::files::file_header_bufs[],
    a memory overrun could occur when running with a non-default
    setting of innodb_log_files_in_group.
    
    log_t::files::create(): Correctly allocate n_files*2048 + 512
    bytes of memory, to be aligned at a 512-byte boundary.
    b2f56085
log0log.cc 56.6 KB