mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #10798 from ClickHouse/fix-date-lut-msan-ubsan
Fix UBSan and MSan report in DateLUT
This commit is contained in:
commit
a2f220fd1e
@ -135,7 +135,7 @@ DateLUTImpl::DateLUTImpl(const std::string & time_zone_)
|
|||||||
/// Fill excessive part of lookup table. This is needed only to simplify handling of overflow cases.
|
/// Fill excessive part of lookup table. This is needed only to simplify handling of overflow cases.
|
||||||
while (i < DATE_LUT_SIZE)
|
while (i < DATE_LUT_SIZE)
|
||||||
{
|
{
|
||||||
lut[i] = lut[DATE_LUT_MAX_DAY_NUM];
|
lut[i] = lut[i - 1];
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user