ClickHouse/tests/queries/0_stateless/01659_h3_buffer_overflow.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
839 B
MySQL
Raw Normal View History

2021-11-21 10:58:26 +00:00
-- Tags: no-fasttest
2021-09-12 12:35:27 +00:00
2021-01-21 18:44:48 +00:00
-- the behaviour on overflow can be implementation specific
-- and we don't care about the results, but no buffer overflow should be possible.
SELECT length(h3kRing(9223372036854775807, 1000)) FORMAT Null;
SELECT h3kRing(toUInt64(0xFFFFFFFF), 1000) FORMAT Null;
SELECT h3kRing(0xFFFFFFFFF, 1000) FORMAT Null;
SELECT h3kRing(0xFFFFFFFFFFFFFF, 1000) FORMAT Null;
SELECT h3GetBaseCell(0xFFFFFFFFFFFFFF) FORMAT Null;
SELECT h3GetResolution(0xFFFFFFFFFFFFFF) FORMAT Null;
2022-01-23 14:20:31 +00:00
SELECT h3kRing(0xFFFFFFFFFFFFFF, toUInt16(10)) FORMAT Null;
SELECT h3ToGeo(0xFFFFFFFFFFFFFF) FORMAT Null;
2022-05-12 19:13:37 +00:00
SELECT h3HexRing(0xFFFFFFFFFFFFFF, toUInt16(10)) FORMAT Null; -- { serverError 117 }
SELECT h3HexRing(0xFFFFFFFFFFFFFF, toUInt16(10000)) FORMAT Null; -- { serverError 117 }
SELECT length(h3HexRing(581276613233082367, toUInt16(1))) FORMAT Null;