Opened 10 years ago

Closed 10 years ago

#5595 closed defect (worksforme)

FeatureStyle crash when LABEL has bracket

Reported by: aperi2007 Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

I detect this issue on mapserver. After some test on mapserver site, (ref here) https://github.com/mapserver/mapserver/issues/4965

I start to think that the issue is on gdal library.

The issue is a crash when the LABEL string has a bracket in it.

LABEL(f:"Arial",t:"(N.3)",a:0,s:9g,c:#FF00FF)

If I remove the brackets, like this: LABEL(f:"Arial",t:"N.3",a:0,s:9g,c:#FF00FF) is work well.

I try also to protect the bracket using: LABEL(f:"Arial",t:"\(N.3\)",a:0,s:9g,c:#FF00FF)

in this case the software don't crash but it show the \ chars.

Change History (1)

comment:1 by aperi2007, 10 years ago

Resolution: worksforme
Status: newclosed
Version: unspecifiedsvn-trunk

I try to find where was the potential bg in the gdal code, but without success.

Effectively I'm not sure there is a potential crash on gdal site. I know only that mapserver will crash istantaneously when the text in featurestyle has a bracket like this t:"(...)"

Potentially it could be in the gdal site, but no success try-ing to find it or to reproduce in a gdal standalone program. So is impossibile to resolve.

The only solution affordable is to resolve in the client site (mapserver) the question that when the bracket are escaped <pre> ..t:"\(...\)"..

the client don't crash but the text in the map appear with \ char in front. :(

I hope this is resolvable mapserver site with a search and replace of \ in the text after it is read from the datasource.

So I close this ticket.

Note: See TracTickets for help on using tickets.