[postgis-tickets] [PostGIS] #4915: box2d_in() + bogus string crashes server

PostGIS trac at osgeo.org
Thu Jul 1 17:14:46 PDT 2021


#4915: box2d_in() + bogus string crashes server
----------------------+---------------------------
  Reporter:  Robins   |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.1.4
 Component:  postgis  |    Version:  3.0.x
Resolution:           |   Keywords:  box2d_in
----------------------+---------------------------

Comment (by robe):

 Where does this plvdate.version() function come from.

 I tried to replicate with:


 {{{
 CREATE SCHEMA IF NOT EXISTS plvdate;
 CREATE OR REPLACE FUNCTION plvdate.version() returns text AS
 $$ SELECT 'PostgreSQL PLVdate, version 3.7, October 2018'$$
 language sql ;

 SELECT box2d_in(plvdate.version()::cstring);
 }}}

 But it doesn't crash, just gives:

 {{{
 ERROR:  box2d parser - couldn't parse.  It should look like: BOX(xmin
 ymin,xmax ymax)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4915#comment:4>
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