Opened 15 years ago

Closed 15 years ago

#2936 closed defect (fixed)

seg fault with mapserver-joins and postgres db

Reported by: mko Owned by: mapserver-bugs@…
Priority: high Milestone: 5.4.2 release
Component: PostGIS Interface Version: 5.2
Severity: critical Keywords: seg fault, join, postgres
Cc: mko

Description

When having a mapfile with a JOIN on a PostgreSQL database, mapserver crashes: * glibc detected * corrupted double-linked list.

In mappostgresql.c, msPOSTGRESQLJoinConnect(), there's a strdup missing:

joininfo->to_column = strdup(join->to);
                      ^^^^^^ missing

Would be great, if this fix could go in the current beta release as it may cause the web server to crash!

Change History (3)

comment:1 by mko, 15 years ago

Milestone: 5.4 release6.0 release

comment:2 by sdlime, 15 years ago

Component: MapServer C LibraryPostGIS Interface
Milestone: 6.0 release5.4.2 release
Owner: changed from sdlime to mapserver-bugs@…

comment:3 by sdlime, 15 years ago

Resolution: fixed
Status: newclosed

Instead of copying that property I left the reference in place and removed the code that tried to free it.

Fixed in 5.4 (r9267) and trunk (r9266).

Steve

Note: See TracTickets for help on using tickets.