Buffer overflow in pgsql2shp
|Reported by:||gabrimonfa||Owned by:||strk|
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