• Georgi Kodinov's avatar
    Bug #59884: setting charset to 2048 crashes · 64c82a68
    Georgi Kodinov authored
    The retrieval of a charset by number was not
    doing bounds checking before accessing the internal 
    character sets array.
    Added checks for valid charset number.
    Added asserts for valid charset number to some of 
    the internal functions.
    Removed one superfluous check for charset_number 0
    (since the all_charsets_array[0] is set to 0 anyway) for 
    uniformity.
    Test suite added.
    64c82a68
variables.test 46.4 KB