Ticket #1540 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

[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: loader/dumper Version: trunk
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

shp2pgsql-gui-noport.patch Download (352 bytes) - added by rouault 16 months ago.

Change History

Changed 16 months ago by rouault

Changed 16 months ago by mcayland

  • status changed from new to closed
  • resolution set to fixed

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.