Bug #107435 | It will return success from expr ST_GeomFromWKB with invalid wkb | ||
---|---|---|---|
Submitted: | 31 May 2022 13:06 | Modified: | 1 Jun 2022 14:19 |
Reporter: | T H | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[31 May 2022 13:06]
T H
[31 May 2022 13:35]
MySQL Verification Team
Hi Mr. H, Thank you for your bug report. However, we need further info. What version of server are you using and on which OS and which hardware have you observed that error.
[31 May 2022 13:42]
T H
mysql Server version: 8.0.26-debug Source distribution Copyright (c) 2000, 2021, Oracle and/or its affiliates. platform: linux x84_64
[31 May 2022 13:43]
MySQL Verification Team
Hi Mr. H, Also, for your information, endian-ness is always kept the same, independent of the CPU used. Hence, you should supply us with a full test case that displays the bug fully. As far as we could see, your results are the expected ones.
[31 May 2022 14:16]
T H
the full testcase is just what I wrote in How to repeat, Well-Known Binary(WKB) format is defined by OGC, I explained the meaning of wkb from testcase in Description part(please read it!); the problem is the first byte(00) of point2 indicate the byte_order is big_endian, but mysql read the type(01000000) of point2 by little_endian; In postgis, the same wkb report an error which is i expected: postgres=# select st_astext(ST_GeomFromWKB('\x010400000003000000010100000000000000000024C00000000000004E400001000000000000000000494000000000008051C0010100000000000000008051C00000000000805140')); ERROR: Unknown WKB type (16777216)!
[1 Jun 2022 12:12]
MySQL Verification Team
HI Mr. H, We have noted that you have not used `options` argument. Does it help in this case ???
[1 Jun 2022 14:19]
MySQL Verification Team
Hi Mr. H, We have further analysed your report and concluded that it is a bug. Verified as reported.