Opened 15 years ago
#3106 new defect
lack of quotes in expression with string type causes double free
Reported by: | kantarjiev | Owned by: | sdlime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | 5.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
A mapfile with the following works fine:
CLASSITEM "CONTRACC" CLASS
NAME "Controlled Access" EXPRESSION "Y"
but if I try to complicate it as follows, it breaks, with my log showing
* glibc detected * double free or corruption (fasttop): 0x08140898 *
CLASS
NAME "Controlled Access FC1" EXPRESSION (([FUNC_CLASS] eq "1") and ([CONTRACC] eq "Y"))
However, if I quote the item name:
CLASS
NAME "Controlled Access FC1" EXPRESSION (('[FUNC_CLASS]' eq '1') and ([CONTRACC] eq 'Y'))
it doesn't creash *and* provides the class I'm after.
I'm using the prepackaged server from fgs-mapserver_5.0.2-fgs_1.0.0-linux-i386.bin