Opened 12 years ago

Closed 12 years ago

#1540 closed defect (fixed)

[PATCH] Fix segfault in shp2pgsql-gui when no port is specified

Reported by: rouault Owned by: mcayland
Priority: medium Milestone: PostGIS 2.0.0
Component: utils/loader-dumper Version: master
Keywords: Cc:

Description

When setting up the connection parameters to the database in shp2pgsql-gui, if one doesn't specify a port, one get a segfault. Not specifing a port is perfectely valid for unix socket connections.

Attachments (1)

shp2pgsql-gui-noport.patch (352 bytes ) - added by rouault 12 years ago.

Download all attachments as: .zip

Change History (2)

by rouault, 12 years ago

Attachment: shp2pgsql-gui-noport.patch added

comment:1 by mcayland, 12 years ago

Resolution: fixed
Status: newclosed

Thanks for the report - yes, it was supposed to be allowed but there was an accidental NULL pointer dereference when the string was empty. Fix committed as r9032.

Note: See TracTickets for help on using tickets.