[postgis-tickets] [PostGIS] #4089: ST_GeomFromTWKB throws an error when reading bbox around 3D geometry
PostGIS
trac at osgeo.org
Wed May 16 06:05:02 PDT 2018
#4089: ST_GeomFromTWKB throws an error when reading bbox around 3D geometry
---------------------+---------------------------
Reporter: atallah | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.4.5
Component: postgis | Version: 2.4.x
Keywords: |
---------------------+---------------------------
Here is one particular breaking example
{{{
select st_AsTWKB(st_GeometryFromText('POINT Z(1 2 3)'), 0, 0, 0, false,
true);
// \x010901020004000600020406
select st_astext(st_geomfromtwkb('\x010901020004000600020406'));
// ERROR: varint_u64_decode: varint extends past end of buffer
}}}
While I of course couldn't check all possible configurations that lead to
this, I found that this happens for POINT Z, LINESTRING Z and POLYGON Z,
but only when includeBbox is set to true. Precision did not seem to make a
difference.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4089>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list