• Marc Alff's avatar
    Bug#50557 checksum table crashes server when used in performance_schema · fa4c505e
    Marc Alff authored
    CHECKSUM TABLE for performance schema tables could cause uninitialized
    memory reads.
    
    The root cause is a design flaw in the implementation of
    mysql_checksum_table(), which do not honor null fields.
    
    However, fixing this bug in CHECKSUM TABLE is risky, as it can cause the
    checksum value to change.
    
    This fix implements a work around, to systematically reset fields values
    even for null fields, so that the field memory representation is always
    initialized with a known value.
    fa4c505e
pfs_engine_table.cc 21.8 KB