query, report https://gist.github.com/alesapin/c91d9ffd65471c4d8b595219a26a601a.
Full report
https://clickhouse-test-reports.s3.yandex.net/19412/cc2788af881c96701076b366259bc99525d926b1/fuzzer_asan/report.html#fail1
{
        DayNum result_day = addMonths(toDayNum(t), delta);
        time_t time_offset = toHour(t) * 3600 + toMinute(t) * 60 + toSecond(t);
        if (time_offset >= lut[result_day].time_at_offset_change)
            time_offset -= lut[result_day].amount_of_offset_change;
        return lut[result_day].date + time_offset;
    }
    inline NO_SANITIZE_UNDEFINED DayNum addMonths(DayNum d, Int64 delta) const
    {
        const Values & values = lut[d];
        Int64 month = static_cast<Int64>(values.month) + delta;
        if (month > 0)
        {
            auto year = values.year + (month - 1) / 12;
            month = ((month - 1) % 12) + 1;
            auto day_of_month = saturateDayOfMonth(year, month, values.day_of_month);
            return makeDayNum(year, month, day_of_month);
        }
        else
        {
            auto year = values.year - (12 - month) / 12;
            month = 12 - (-month % 12);
            auto day_of_month = saturateDayOfMonth(year, month, values.day_of_month);
            return makeDayNum(year, month, day_of_month);
        }
    }
    inline NO_SANITIZE_UNDEFINED time_t addQuarters(time_t t, Int64 delta) const