• Vladislav Vaintroub's avatar
    MDEV-34063 tpool - integer overflow in multiplication. · 88f49da8
    Vladislav Vaintroub authored
    When calculating next wakeup timepoint for the timer thread, with large
    thread_pool_stall_limit values, 32bit int overflow can happen.
    Fixed by making one operand 8 byte large.
    
    Also fixed the type of tick_interval to be unsigned, so it does not
    go negative for very thread_pool_stall_limit.
    88f49da8
threadpool_generic.cc 46.5 KB