Repository navigation
Forbid lcm/gcd for floats (and few UBsan reports fixes) - #19532
Conversation
|
Fuzzer fail is related SELECT lcm(NULL, NULL), lcm(nan, 2), lcm(NULL, 65537) |
|
Build error: |
Not related, but yes this is just one more UB case, will address it too |
There are other issues with float, seems that lcm/gcd should not be allowed for floats, objections? |
No objections. |
2089f4d to
8edfb4e
Compare
8edfb4e to
d35ff7d
Compare
Finally (d35ff7d553cf99b5acd4c2e88f17633cad9f351c - https://clickhouse-test-reports.s3.yandex.net/19532/d35ff7d553cf99b5acd4c2e88f17633cad9f351c/fuzzer_ubsan/report.html) But I need to add missing |
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
d35ff7d to
27a5794
Compare
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Forbid
lcm/gcdfor floatsDetailed description / Documentation draft:
Also this PR contains some UBs fixes in:
lcmaddYearsgcd