• Alexander Barkov's avatar
    Bug#49134 5.1 server segfaults with 2byte collation file · 9c47ea83
    Alexander Barkov authored
    Problem: add_collation did not check that cs->number is smaller
    than the number of elements in the array all_charsets[],
    so server could crash when loading an Index.xml file with
    a collation ID greater the number of elements 
    (for example when downgrading from 5.5).
    
    Fix: adding a condition to check that cs->number is not out of valid range.
    9c47ea83
Index.xml 2.39 KB