File: gis_ubsan.test

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (217 lines) | stat: -rw-r--r-- 6,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
--echo #
--echo # BUG#27135504 UBSAN: BOOST - DETERMINANT.HPP - SIGNED INTEGER OVERFLOW
--echo #

DO ST_Validate(ST_MakeEnvelope(POINT(29509,1152921504606846980),
                               POINT(-19262,1413)));
DO ST_Validate(ST_MakeEnvelope(POINT(-26747,2199023255549),
                               POINT(536870909,-6461)));
DO ST_Validate(ST_MakeEnvelope(POINT(-18674,1152921504606846978),
                               POINT(-26333,-5942)));
DO ST_Validate(ST_MakeEnvelope(POINT(-7090,731),
                               POINT(12542,-576460752303423485)));
DO ST_Validate(ST_MakeEnvelope(POINT(-5418,1152921504606846977),
                               POINT(-1971,1207)));
--echo #
--echo # BUG#27744399 UBSAN: SIGNED INTEGER OVERFLOW IN CALCULATE_DETERMINANT
--echo #

DO ST_Buffer(
    GEOMETRYCOLLECTION(LINESTRING(
        POINT(-9624.1787,-7723.4956),
    	POINT(-4136,28786),
    	POINT(-23523,-16411),
    	POINT(7911,-12922),
    	POINT(4044,-18833),
    	POINT(262145,-15049),
    	POINT(-389,10137),
    	POINT(21307,70368744177664))),
    1);

--echo #
--echo # BUG#27811282 UBSAN: SIGNED INTEGER OVERFLOW IN SECTIONALIZE::GET_DIRECTION_LOOP
--echo #

DO ST_Difference(
    POLYGON(
        LINESTRING(POINT(3793,28348),POINT(30372,3916.5381),
                   POINT(-16364,21544),POINT(3793,28348)),
        LINESTRING(POINT(31092,140737488355326),POINT(16660,-549),
                   POINT(27262,-16175),POINT(31092,140737488355326)),
        LINESTRING(POINT(10658,19046),POINT(-6355,-14389),
                   POINT(-4649.9106,30816),POINT(10658,19046)),
        LINESTRING(POINT(-9950,9885),POINT(16126,26198),
                   POINT(9223372036854775807,9007199254740989),POINT(-9950,9885))),
    GEOMETRYCOLLECTION(POLYGON(
        LINESTRING(POINT(22318,67108865),POINT(-4350,-20457),
                   POINT(-4222.3896,9223372036854775804),POINT(22318,67108865)),
        LINESTRING(POINT(-26082,23435),POINT(-11510,-10399),
                   POINT(15884,-29573),POINT(-26082,23435))))
    );

--echo #
--echo # BUG#27751479 UBSAN: ST_UNION SEGMENT_RATIO::EQUAL SIGNED INTEGER OVERFLOW __INT128
--echo #

DO ST_Union(
    ST_MakeEnvelope(
        POINT(23985,-22826),
        POINT(-30354,23323)),
    ST_MakeEnvelope(
        POINT(288230376151711748,26347),
        POINT(20071,-576460752303423484))
    );

--echo #
--echo # BUG#30358736 UBSAN: SIGNED INTEGER OVERFLOW IN BOOST'S PARTITION.HPP
--echo #

--error ER_GIS_INVALID_DATA
do mbrwithin(
 st_symdifference(
  polygon(
   linestring(
    point(-4611686018427387902,29908),point(-32281,-12206),
    point(-29238,-30926),point(-4611686018427387902,29908)
   ),
   linestring(
    point(18379,6207),point(-28264,2556),
    point(-30155,-7306),point(18379,6207)
   ),
   linestring(
    point(-8706,-8010),point(17028,-1861),
    point(-30395,11606),point(-8706,-8010)
   ),
   linestring(
    point(-11199,-12148),point(-24342,1125899906842627),
    point(13554,1655),point(-11199,-12148)
   )
  ),
   geometrycollection(
    polygon(
     linestring(
      point(9223,7629),point(-9133,-13165),
      point(-26086,1023),point(9223,7629)
     ),
     linestring(
      point(-1023,-20334),point(-1202.2031,288230376151711747),
      point(-17956,-3236),point(-1023,-20334)
     ),
     linestring(
      point(23895,24711),point(-18121,7372),
      point(22355,-5850),point(23895,24711)
     ),
     linestring(
      point(-6571.8857,-1100),point(-29690,65538),
      point(-21814,-32528),point(-6571.8857,-1100)
     ),
     linestring(
      point(30478,8848),point(27415,8781),
      point(-16438,-29228),point(30478,8848)
     ),
     linestring(
     point(5155,21344),point(-590,-14640),
     point(72057594037927937,2300),point(5155,21344)
     ),
    linestring(
     point(-6583,24967),point(16007,-21003),
     point(28742,-8796093022207),point(-6583,24967)
    ),
    linestring(
     point(-31092,13390),point(-28813,4194302),
     point(5677,28999),point(-31092,13390)
    )
   )
  )
 )
,'3536-12-23 04:13:33.501612'
);

--error ER_GIS_INVALID_DATA
do st_symdifference(
  polygon(
   linestring(
    point(-4611686018427387902,29908),point(-32281,-12206),
    point(-29238,-30926),point(-4611686018427387902,29908)
   ),
   linestring(
    point(18379,6207),point(-28264,2556),
    point(-30155,-7306),point(18379,6207)
   ),
   linestring(
    point(-8706,-8010),point(17028,-1861),
    point(-30395,11606),point(-8706,-8010)
   ),
   linestring(
    point(-11199,-12148),point(-24342,1125899906842627),
    point(13554,1655),point(-11199,-12148)
   )
  ),
   geometrycollection(
    polygon(
     linestring(
      point(9223,7629),point(-9133,-13165),
      point(-26086,1023),point(9223,7629)
     ),
     linestring(
      point(-1023,-20334),point(-1202.2031,288230376151711747),
      point(-17956,-3236),point(-1023,-20334)
     ),
     linestring(
      point(23895,24711),point(-18121,7372),
      point(22355,-5850),point(23895,24711)
     ),
     linestring(
      point(-6571.8857,-1100),point(-29690,65538),
      point(-21814,-32528),point(-6571.8857,-1100)
     ),
     linestring(
      point(30478,8848),point(27415,8781),
      point(-16438,-29228),point(30478,8848)
     ),
     linestring(
     point(5155,21344),point(-590,-14640),
     point(72057594037927937,2300),point(5155,21344)
     ),
    linestring(
     point(-6583,24967),point(16007,-21003),
     point(28742,-8796093022207),point(-6583,24967)
    ),
    linestring(
     point(-31092,13390),point(-28813,4194302),
     point(5677,28999),point(-31092,13390)
    )
   )
  )
 );

--echo #
--echo # BUG#31053222 UBSAN: INTERSECTION.HPP SIGNED INTEGER OVERFLOW IN SEGMENTS_TUPLED
--echo #

--error ER_GIS_UNKNOWN_ERROR
do st_buffer(
  multilinestring(
   linestring(
    point(11393,-19530),
    point(-5728,30983),
    point(-9223372036854775807,15322),
    point(27608,14504)
   ),
   linestring(
    point(-32468,-20811),
    point(-27782,-14559),
    point(-30822,11140),
    point(-12550,27458)
   ),
   linestring(
    point(24176,-9103),
    point(4178,-868),
    point(7332,11648),
    point(21439,30360),
    point(-121,11529),
    point(8803,-10835),
    point(5660,20213)
   )
 ),1);