[postgis-devel] Re: Bug#311732: [postgis] shp2pgsql segaults on quotes in dbf

alex bodnaru alexbodn at 012.net.il
Thu Jun 2 18:51:39 PDT 2005


hi flo, list

i am forwarding this bug report here, in the hope it may be better
discussed.

alex

On Fri, 2005-06-03 at 01:35 +0200, Florian Lohoff wrote:
> Package: postgis
> Version: 1.0.0-1
> 
> Hi,
> i am running postgis on Debian/Sarge and i am just trying to import some
> shape files. The second shape segfaulted on me. Here is a gdb backtrace.
> It seems there is something broken with quotes vs doubleqoutes etc ...
> 
> (gdb) bt
> #0  0xb7f1cb1b in memset () from /lib/tls/libc.so.6
> #1  0xb7f1532a in calloc () from /lib/tls/libc.so.6
> #2  0x0804fc76 in protect_quotes_string (str=0xbfffeb10 "Schmid's Wies") at shp2pgsql.c:230
> #3  0x0805003a in Insert_attributes (hDBFHandle=0x80553b0, row=61861) at shp2pgsql.c:335
> #4  0x0805070d in LoadData () at shp2pgsql.c:623
> #5  0x08050176 in main (ARGC=4, ARGV=0xbffff004) at shp2pgsql.c:401
> 
> Flo



More information about the postgis-devel mailing list