#2915 closed defect (fixed)
SLD: generate sld crashes when large class/layer names are used
Reported by: | assefa | Owned by: | assefa |
---|---|---|---|
Priority: | normal | Milestone: | 5.4 release |
Component: | WMS Server | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | stephan.holl@… |
Description
Was using a static buffer but run into class name > 100 chars.
Modifying this to use dynamically allocated buffer.
Change History (6)
comment:1 by , 15 years ago
Cc: | added |
---|---|
Status: | new → assigned |
comment:2 by , 15 years ago
OK, compiled, but it still segfaults later on (layer
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7faa6c0 (LWP 27626)] 0x00810069 in FLTArraysAnd () from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so (gdb) bt #0 0x00810069 in FLTArraysAnd () from /home/gis2/intevation/wms-migration/apps/lib/python2.4/site-packages/_mapscript.so Cannot access memory at address 0x6666666a
Also, the resulting SLDs are invalid, since the have the Tag NamedLayer doubled now:
[gis2@gis2 wms-migration]$ grep -irn NamedLayer slds/*|head -9 slds/Amt_10132_Grenzen_Kompakt.sld:2:<NamedLayer> slds/Amt_10132_Grenzen_Kompakt.sld:3:<NamedLayer> slds/Amt_10132_Grenzen_Kompakt.sld:28:</NamedLayer> slds/Amt_Beschriftung.sld:2:<NamedLayer> slds/Amt_Beschriftung.sld:3:<NamedLayer> slds/Amt_Beschriftung.sld:29:</NamedLayer> slds/Amt_Kompakt_Beschriftung.sld:2:<NamedLayer> slds/Amt_Kompakt_Beschriftung.sld:3:<NamedLayer> slds/Amt_Kompakt_Beschriftung.sld:30:</NamedLayer>
xmllint complains now.
Could you look into this again please?
comment:3 by , 15 years ago
Stepahn
committed the change in trunk re the NamedLayer (r8646)
correct couple of non validating things r8647.
Could not reproduce the crash though.
I did generate an sld on you entire map (I had to remove all symbols though).
Is it possible to test these changes (from the trunk) and also identify which layer.
crashes.
I will also add these changes to the 5.4 branch so It will be available for next beta or release candidate
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
fix committed in trunk r8635.
stephan,
Thanks