Opened 17 years ago
Last modified 17 years ago
#1986 new defect
crash in mapogssld.c -> msSLDGetGraphicSymbol()
Reported by: | 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)
Change History (3)
by , 17 years ago
Attachment: | modifications_mapogcsld.c added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.
modified functions msSLDGetGraphicSymbol() and msSLDParseExternalGraphic() from mapogcsld.c