MapServer / MapServer-import

3 stars 2 forks source link

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

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: jleslie Date: 2007/08/01 - 02:42

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
tbonfort commented 12 years ago

Author: unicoletti Date: 2007/08/07 - 16:08 Duplicate of #2140