ClickHouse/tests/queries/0_stateless/01661_arraySlice_ubsan.reference
Azat Khuzhin bb6f775b89 Fix UBsan report in arraySlice (with INT64_MIN as offset)
- arraySlice([], INT64_MIN) -- FunctionArraySlice::executeImpl

Found with fuzzer [1].

  [1]: https://clickhouse-test-reports.s3.yandex.net/19378/2c42600cf9bd8e9962b5b5a0ebb4bf11a10887ea/fuzzer_ubsan/report.html#fail1

v2: removed fixes that is already included into #19459
    - arraySlice(groupArray([]), INT64_MIN) -- sliceDynamicOffsetUnbounded
2021-01-23 00:25:50 +03:00

5 lines
92 B
Plaintext

-- { echo }
-- tests with INT64_MIN (UBsan)
select arraySlice([], -9223372036854775808);
[]