ClickHouse/tests/queries/0_stateless/00515_gcd_lcm.reference
Azat Khuzhin 27a5794795 Fix UBsan report in lcm()/gcd()
Changelog:
- Check against INT64_MIN/INT64_MAX
- Check against std::numeric_limits<>::min/max
- Move common code into separate header - GCDLCMImpl.h
- Forbid floats

UBsan report [1].

  [1]: https://clickhouse-test-reports.s3.yandex.net/19466/cb30a02540a0f223df6668c5f88ff84aa666ff54/fuzzer_ubsan/report.html#fail1
2021-01-26 08:33:49 +03:00

24 lines
119 B
Plaintext

256
11
64
1
2
1
1
1
2147483647
1
5
255
1
5120
121
256
1
4
735
64770
4611686011984936962
4611686011984936962
2147483648