[postgis-tickets] [PostGIS] #3101: Buffer overflow in pgsql2shp

PostGIS trac at osgeo.org
Thu Apr 23 04:12:49 PDT 2015


#3101: Buffer overflow in pgsql2shp
------------------------+---------------------------
 Reporter:  gabrimonfa  |      Owner:  pramsey
     Type:  defect      |     Status:  new
 Priority:  high        |  Milestone:  PostGIS 2.1.8
Component:  postgis     |    Version:  2.1.x
 Keywords:              |
------------------------+---------------------------
 Postgis 2.1.7 compiled from source

 Database tested
 Postgresql 8.3 with postgis 1.3.3
 Postgresql 9.2.10 with postgis 2.0

 I'm on Linux Intel 64bit

 When I use pgsql2shp to convert a table to shapefile  it crashes with
 {{{
 *** buffer overflow detected ***:
 /tmp/postgis-2.1.7/loader/.libs/pgsql2shp terminated
 }}}

 I've produced a small test case in form of a plain postgresql dump that
 produce a table named test in schema public
 I'm dumping the table to shp with the following command
 {{{
 pgsql2shp -f pippo -h host -u user -g the_geom db public.test
 }}}


 The table is empty.

 The problem may arise due the warnings issued to the user that many field
 names have been truncated, since if I remove one field the crash does not
 happen.

 gdb full backtrace provided

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3101>
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