• Chaithra Gopalareddy's avatar
    Bug#12347040: MEMORY LEAK IN CONVERT_TZ COULD POSSIBLY CAUSE · fa61c049
    Chaithra Gopalareddy authored
                        DOS ATTACKS
          
    Problem:
    For detailed description, see Bug#42502. This bug is a duplicate
    of Bug#42502. The complete fix for Bug#42502 was not made as
    proposed. Hence the bug still persists.
          
    Fix:
    Make the changes as proposed originally for the bugfix of 42502.
    Which is to remove the allocation of the memory before we actually
    check for any errors.
    
    sql/tztime.cc:
      Remove the double allocation for tz_info
    fa61c049
tztime.cc 81 KB