Debian Codegraph @

mysql-test/suite/gis/t/gis_ubsan.test

raw
1 --echo #
2 --echo # BUG#27135504 UBSAN: BOOST - DETERMINANT.HPP - SIGNED INTEGER OVERFLOW
3 --echo #
4
5 DO ST_Validate(ST_MakeEnvelope(POINT(29509,1152921504606846980),
6 POINT(-19262,1413)));
7 DO ST_Validate(ST_MakeEnvelope(POINT(-26747,2199023255549),
8 POINT(536870909,-6461)));
9 DO ST_Validate(ST_MakeEnvelope(POINT(-18674,1152921504606846978),
10 POINT(-26333,-5942)));
11 DO ST_Validate(ST_MakeEnvelope(POINT(-7090,731),
12 POINT(12542,-576460752303423485)));
13 DO ST_Validate(ST_MakeEnvelope(POINT(-5418,1152921504606846977),
14 POINT(-1971,1207)));
15 --echo #
16 --echo # BUG#27744399 UBSAN: SIGNED INTEGER OVERFLOW IN CALCULATE_DETERMINANT
17 --echo #
18
19 DO ST_Buffer(
20 GEOMETRYCOLLECTION(LINESTRING(
21 POINT(-9624.1787,-7723.4956),
22 POINT(-4136,28786),
23 POINT(-23523,-16411),
24 POINT(7911,-12922),
25 POINT(4044,-18833),
26 POINT(262145,-15049),
27 POINT(-389,10137),
28 POINT(21307,70368744177664))),
29 1);
30
31 --echo #
32 --echo # BUG#27811282 UBSAN: SIGNED INTEGER OVERFLOW IN SECTIONALIZE::GET_DIRECTION_LOOP
33 --echo #
34
35 DO ST_Difference(
36 POLYGON(
37 LINESTRING(POINT(3793,28348),POINT(30372,3916.5381),
38 POINT(-16364,21544),POINT(3793,28348)),
39 LINESTRING(POINT(31092,140737488355326),POINT(16660,-549),
40 POINT(27262,-16175),POINT(31092,140737488355326)),
41 LINESTRING(POINT(10658,19046),POINT(-6355,-14389),
42 POINT(-4649.9106,30816),POINT(10658,19046)),
43 LINESTRING(POINT(-9950,9885),POINT(16126,26198),
44 POINT(9223372036854775807,9007199254740989),POINT(-9950,9885))),
45 GEOMETRYCOLLECTION(POLYGON(
46 LINESTRING(POINT(22318,67108865),POINT(-4350,-20457),
47 POINT(-4222.3896,9223372036854775804),POINT(22318,67108865)),
48 LINESTRING(POINT(-26082,23435),POINT(-11510,-10399),
49 POINT(15884,-29573),POINT(-26082,23435))))
50 );
51
52 --echo #
53 --echo # BUG#27751479 UBSAN: ST_UNION SEGMENT_RATIO::EQUAL SIGNED INTEGER OVERFLOW __INT128
54 --echo #
55
56 DO ST_Union(
57 ST_MakeEnvelope(
58 POINT(23985,-22826),
59 POINT(-30354,23323)),
60 ST_MakeEnvelope(
61 POINT(288230376151711748,26347),
62 POINT(20071,-576460752303423484))
63 );
64
65 --echo #
66 --echo # BUG#30358736 UBSAN: SIGNED INTEGER OVERFLOW IN BOOST'S PARTITION.HPP
67 --echo #
68
69 --error ER_GIS_INVALID_DATA
70 do mbrwithin(
71 st_symdifference(
72 polygon(
73 linestring(
74 point(-4611686018427387902,29908),point(-32281,-12206),
75 point(-29238,-30926),point(-4611686018427387902,29908)
76 ),
77 linestring(
78 point(18379,6207),point(-28264,2556),
79 point(-30155,-7306),point(18379,6207)
80 ),
81 linestring(
82 point(-8706,-8010),point(17028,-1861),
83 point(-30395,11606),point(-8706,-8010)
84 ),
85 linestring(
86 point(-11199,-12148),point(-24342,1125899906842627),
87 point(13554,1655),point(-11199,-12148)
88 )
89 ),
90 geometrycollection(
91 polygon(
92 linestring(
93 point(9223,7629),point(-9133,-13165),
94 point(-26086,1023),point(9223,7629)
95 ),
96 linestring(
97 point(-1023,-20334),point(-1202.2031,288230376151711747),
98 point(-17956,-3236),point(-1023,-20334)
99 ),
100 linestring(
101 point(23895,24711),point(-18121,7372),
102 point(22355,-5850),point(23895,24711)
103 ),
104 linestring(
105 point(-6571.8857,-1100),point(-29690,65538),
106 point(-21814,-32528),point(-6571.8857,-1100)
107 ),
108 linestring(
109 point(30478,8848),point(27415,8781),
110 point(-16438,-29228),point(30478,8848)
111 ),
112 linestring(
113 point(5155,21344),point(-590,-14640),
114 point(72057594037927937,2300),point(5155,21344)
115 ),
116 linestring(
117 point(-6583,24967),point(16007,-21003),
118 point(28742,-8796093022207),point(-6583,24967)
119 ),
120 linestring(
121 point(-31092,13390),point(-28813,4194302),
122 point(5677,28999),point(-31092,13390)
123 )
124 )
125 )
126 )
127 ,'3536-12-23 04:13:33.501612'
128 );
129
130 --error ER_GIS_INVALID_DATA
131 do st_symdifference(
132 polygon(
133 linestring(
134 point(-4611686018427387902,29908),point(-32281,-12206),
135 point(-29238,-30926),point(-4611686018427387902,29908)
136 ),
137 linestring(
138 point(18379,6207),point(-28264,2556),
139 point(-30155,-7306),point(18379,6207)
140 ),
141 linestring(
142 point(-8706,-8010),point(17028,-1861),
143 point(-30395,11606),point(-8706,-8010)
144 ),
145 linestring(
146 point(-11199,-12148),point(-24342,1125899906842627),
147 point(13554,1655),point(-11199,-12148)
148 )
149 ),
150 geometrycollection(
151 polygon(
152 linestring(
153 point(9223,7629),point(-9133,-13165),
154 point(-26086,1023),point(9223,7629)
155 ),
156 linestring(
157 point(-1023,-20334),point(-1202.2031,288230376151711747),
158 point(-17956,-3236),point(-1023,-20334)
159 ),
160 linestring(
161 point(23895,24711),point(-18121,7372),
162 point(22355,-5850),point(23895,24711)
163 ),
164 linestring(
165 point(-6571.8857,-1100),point(-29690,65538),
166 point(-21814,-32528),point(-6571.8857,-1100)
167 ),
168 linestring(
169 point(30478,8848),point(27415,8781),
170 point(-16438,-29228),point(30478,8848)
171 ),
172 linestring(
173 point(5155,21344),point(-590,-14640),
174 point(72057594037927937,2300),point(5155,21344)
175 ),
176 linestring(
177 point(-6583,24967),point(16007,-21003),
178 point(28742,-8796093022207),point(-6583,24967)
179 ),
180 linestring(
181 point(-31092,13390),point(-28813,4194302),
182 point(5677,28999),point(-31092,13390)
183 )
184 )
185 )
186 );
187
188 --echo #
189 --echo # BUG#31053222 UBSAN: INTERSECTION.HPP SIGNED INTEGER OVERFLOW IN SEGMENTS_TUPLED
190 --echo #
191
192 --error ER_GIS_UNKNOWN_ERROR
193 do st_buffer(
194 multilinestring(
195 linestring(
196 point(11393,-19530),
197 point(-5728,30983),
198 point(-9223372036854775807,15322),
199 point(27608,14504)
200 ),
201 linestring(
202 point(-32468,-20811),
203 point(-27782,-14559),
204 point(-30822,11140),
205 point(-12550,27458)
206 ),
207 linestring(
208 point(24176,-9103),
209 point(4178,-868),
210 point(7332,11648),
211 point(21439,30360),
212 point(-121,11529),
213 point(8803,-10835),
214 point(5660,20213)
215 )
216 ),1);
217