Ticket #2332 (closed defect: fixed)
Double free or corruption in msCopyJoin
|Reported by:||aalbarello||Owned by:||sdlime|
|Component:||MapServer C Library||Version:||5.0|
I'm getting libc's double free/corruption errors when calling msCopyMap on a map containing joins. This is due to the fact that msCopyLayer doesn't initialize join objects by calling initJoin prior to calling msCopyJoin, which therefore calls msFree through the MS_COPYSTRING macro on uninitialized char pointers of the destination map object.
This can be fixed by adding
on line 851 of mapcopy.c