Opened 17 years ago

Last modified 17 years ago

#1986 new defect

crash in mapogssld.c -> msSLDGetGraphicSymbol()

Reported by: pf@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.10
Severity: normal Keywords:
Cc:

Description

I found a problem in mapogssld.c in context of using external Graphics.
There is a bug in mapogcsld.c; No limit check for creating new symbols in
context of sld with externalGraphic references. Further it loads images which
are allready available because the symbols use the unique name instead of the
graphic name.
I suggest to use  extGraphicName as SymbolName instead of the Unique
Name of  created TmpFileName. This will reduce the amount of
created Symbols, and will also reduce the number of calls to
msHTTPGetFile(). Find attached the modified functions based on code of
current 4.10.0 Release.
I also insert a LIMIT Check for static symbolset.symbol[] in
msSLDGetGraphicSymbol to avoid a crash caused by inserting new Symbols.
Kindest regards,
Peter

Attachments (1)

modifications_mapogcsld.c (7.5 KB ) - added by pf@… 17 years ago.
modified functions msSLDGetGraphicSymbol() and msSLDParseExternalGraphic() from mapogcsld.c

Download all attachments as: .zip

Change History (3)

by pf@…, 17 years ago

Attachment: modifications_mapogcsld.c added

modified functions msSLDGetGraphicSymbol() and msSLDParseExternalGraphic() from mapogcsld.c

comment:1 by pf@…, 17 years ago

Cc: assefa@… added

comment:2 by pf@…, 17 years ago

*** Bug 1985 has been marked as a duplicate of this bug. ***
Note: See TracTickets for help on using tickets.