Mapscript/cloneMap/Processing

Sean Gillies sgillies at FRII.COM
Tue Jun 28 07:31:55 PDT 2005


On Jun 28, 2005, at 6:14 AM, Benedikt Rothe wrote:

> Dies ist eine mehrteilige Nachricht im MIME-Format.
> --=_alternative 00433F71C125702E_=
> Content-Type: text/plain; charset="US-ASCII"
>
> 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

Hi Benedikt,

If you will enter a new issue in our tracker

   http://mapserver.gis.umn.edu/bugs/enter_bug.cgi

under the MapServer C Library component, and assign it to 
sgillies at frii.com, I will fix this right away.

cheers,
Sean


--
Sean Gillies
sgillies at frii dot com
http://zcologia.com



More information about the MapServer-users mailing list