Changeset 229


Ignore:
Timestamp:
Jun 9, 2011, 2:51:57 PM (13 years ago)
Author:
djay
Message:

Remove the '<' char supported in zcfg. Fixing dupMaps memory allocation size. Many thanks to Luca Delucchi for pointing us to this issue.

Location:
trunk/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/service.h

    r216 r229  
    549549        map* tmpV=getMap(res->content,"value");
    550550        free(tmpV->value);
    551         tmpV->value=(char*)malloc(atoi(tmp->value)*sizeof(char));
     551        tmpV->value=(char*)malloc((atoi(tmp->value)+1)*sizeof(char));
    552552        memmove(tmpV->value,tmpSized,atoi(tmp->value)*sizeof(char));
     553        tmpV->value[atoi(tmp->value)]=0;
    553554        free(tmpSized);
    554555      }
  • trunk/zoo-kernel/service_conf.l

    r228 r229  
    4141
    4242attname [a-zA-Z0-9_\-]+
    43 attvalue1       [\^\*\+,;@a-zA-Z0-9_\-::.:" "\"\'/\\\(\)\t\|$><&]+
     43attvalue1       [\^\*\+,;@a-zA-Z0-9_\-::.:" "\"\'/\\\(\)\t\|\$\&>]+
    4444
    4545attvalue                \"[^"]*\"|\'[^']*\'\(\)
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png