Changeset 583


Ignore:
Timestamp:
Feb 13, 2015, 9:20:48 AM (10 years ago)
Author:
knut
Message:

Increased memory requirement in calls to getMapsAsKVP() (see comment in zoo_service_loader.c).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r582 r583  
    726726  map *di = getMap (request_inputs, "DataInputs");
    727727
    728   char *dataInputsKVP = getMapsAsKVP (inputs, cgiContentLength, 0);
    729   char *dataOutputsKVP = getMapsAsKVP (outputs, cgiContentLength, 1);
     728  // The required size for the dataInputsKVP and dataOutputsKVP buffers
     729  // may exceed cgiContentLength, hence a 2 kb extension. However, a
     730  // better solution would be to have getMapsAsKVP() determine the required
     731  // buffer size before allocating memory.     
     732  char *dataInputsKVP = getMapsAsKVP (inputs, cgiContentLength + 2048, 0);
     733  char *dataOutputsKVP = getMapsAsKVP (outputs, cgiContentLength + 2048, 1);
    730734#ifdef DEBUG
    731735  fprintf (stderr, "DATAINPUTSKVP %s\n", dataInputsKVP);
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