• Ramil Kalimullin's avatar
    Fix for bug #42803: Field_bit does not have unsigned_flag field, · 99318017
    Ramil Kalimullin authored
    can lead to bad memory access
    
    Problem: Field_bit is the only field which returns INT_RESULT
    and doesn't have unsigned flag. As it's not a descendant of the 
    Field_num, so using ((Field_num *) field_bit)->unsigned_flag may lead
    to unpredictable results.
    
    Fix: check the field type before casting.
    99318017
opt_range.cc 303 KB