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: | |
---|---|---|---|
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 , 15 years ago
Milestone: | 5.4 release → 6.0 release |
---|
comment:2 by , 15 years ago
Component: | MapServer C Library → PostGIS Interface |
---|---|
Milestone: | 6.0 release → 5.4.2 release |
Owner: | changed from | to
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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