Opened 17 years ago

Closed 17 years ago

#2190 closed defect (duplicate)

mappostgis.c:msPOSTGISLayerRetrievePK() is malloc'ing improperly

Reported by: jleslie Owned by: sdlime
Priority: normal Milestone: 5.0 release
Component: MapServer C Library Version: 4.10
Severity: normal Keywords:
Cc:

Description

From mappostgis.c:

1762:    pos_sep = strstr(table_name, ".");
1770:      length = (int)pos_sep + strlen(pos_sep);
1771:      table = (char *)malloc(length);


line 1770 should probably be:

length = strlen(pos_sep);

This problem also exists in the 7/25/07 snapshot of 5.0.0-beta1

Change History (1)

comment:1 by unicoletti, 17 years ago

Milestone: 5.0 release
Resolution: duplicate
Status: newclosed

Duplicate of #2140

Note: See TracTickets for help on using tickets.