• Sergey Vojtovich's avatar
    BUG#47598 - MyISAM may write uninitialized data to disk · e38e30d0
    Sergey Vojtovich authored
    When MyISAM writes newly created index page it may be
    initialized partially. In other words some bytes of
    sensible data and uninitialized tail of the page may
    go into index file.
    
    Under certain rare circumstances these hunks of memory
    may contain data that would be otherwise inaccessible
    to user, like passwords or data from other tables.
    
    Fixed by initializing memory for temporary MyISAM key
    buffer to '\0'.
    
    No test case for this fix as it is heavily covered by
    existing tests.
    e38e30d0
rt_index.c 29.3 KB