Mapscript/cloneMap/Processing
Benedikt Rothe
umn-ms at HYDROTEC.DE
Tue Jun 28 05:14:31 PDT 2005
Hallo List
We are using MapScript/Java inside Tomcat.
We encountered a crash in webObj.cloneMap() when
a PROCESSING-statement was used inside a Layer-Block.
My impression is, that there is a bug in mapcopy.c/msCopyLayer (?)
I think: After the line
MS_COPYSTELEM(numprocessing);
and before the loop
for (i = 0; i < dst->numprocessing; i++) {...}
a memory-allocation for dst->processing is missing.
I made a change:
MS_COPYSTELEM(numprocessing); //OLD
// Allocating an initializing memory for processing-array.
// Must be dst->numprocessing+1 to be 0-terminated.
dst->processing = numprocessing ?
(char*)
calloc(dst->numprocessing+1,sizeof(char*)) :
0;
for (i = 0; i < dst->numprocessing; i++) { //OLD
...
I hope this is helpful. Greetings
Benedikt Rothe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050628/1c0bf95a/attachment.htm>
More information about the MapServer-users
mailing list