Custom Query (101 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (28 - 30 of 101)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Ticket Resolution Summary Owner Reporter
#103 fixed Segmentation fault in printFullDescription() Knut Landmark
Description

The following lines in the function printFullDescription (service_internal.c) causes a segmentation fault in some situations, namely if the pointer e->supported is NULL (tested on Windows 7):

if(_tmp0==NULL){
   xmlAddChild(nc6,nc8);
   _tmp0=e->supported;
   if(getMap(_tmp0->content,"range")!=NULL ||
      getMap(_tmp0->content,"rangeMin")!=NULL ||
      getMap(_tmp0->content,"rangeMax")!=NULL ||
      getMap(_tmp0->content,"rangeClosure")!=NULL ) { 
      tmp1=_tmp0->content;
      goto doRange;
   }
}
#102 fixed Parsing of parameter range attributes Knut Landmark
Description

The following code fragment in service_internal.c parses the Range=[min,max] attribute of LiteralData? variables, but does not terminate the MinimumValue? string. It also gives a wrong result if there are trailing white spaces in the MaximumValue? string.

pToken=strtok(orig,",");
int nci0=0;
while(pToken!=NULL) {
   char *tmpStr=(char*) malloc((strlen(pToken))*sizeof(char));
   if(nci0==0) {
      nc7 = xmlNewNode(ns_ows, BAD_CAST "MinimumValue");
      int nci=1;
      for(nci=1;nci<strlen(pToken);nci++) {
         tmpStr[nci-1]=pToken[nci];
      }
   }
   else {
      nc7 = xmlNewNode(ns_ows, BAD_CAST "MaximumValue");
      int nci=0;
      for(nci=0;nci<strlen(pToken)-1;nci++){
         tmpStr[nci]=pToken[nci];
      }
   }
   xmlAddChild(nc7,xmlNewText(BAD_CAST tmpStr));
   xmlAddChild(nc8,nc7);
   nci0++;
   pToken = strtok(NULL,",");
}

The following alternative code has been briefly tested:

pToken=strtok(orig,",");	
int nci0=0;
while(pToken!=NULL) {
   char *tmpStr=(char*) malloc((strlen(pToken))*sizeof(char));
   if(nci0==0) {
      nc7 = xmlNewNode(ns_ows, BAD_CAST "MinimumValue");
      strncpy( tmpStr, pToken+1, strlen(pToken)-1 );
      tmpStr[strlen(pToken)-1] = '\0';
   }
   else {
      nc7 = xmlNewNode(ns_ows, BAD_CAST "MaximumValue");
      const char* bkt;
      if ( ( bkt = strchr(pToken, '[') ) != NULL || ( bkt = strchr(pToken, ']') ) != NULL )
      {	
         strncpy( tmpStr, pToken, bkt - pToken );
         tmpStr[bkt - pToken] = '\0';			
      }		
   }
   xmlAddChild(nc7,xmlNewText(BAD_CAST tmpStr));
   free(tmpStr);
   xmlAddChild(nc8,nc7);
   nci0++;
   pToken = strtok(NULL,",");
}
#100 fixed Compile zoo services: base-vect-ops make fails stetou
Description

On CENTOS 6 cd ../zoo-services/ogr/base-vect-ops/ make clean rm -f cgi-env/ogr_service.zo

make g++ -I../../../../thirds/cgic206/ -I../../../zoo-kernel/ -I/usr/include/libxml2 -I/usr/include/gdal geos-config --cflags -DLINUX_FREE_ISSUE -shared -fpic -o cgi-env/ogr_service.zo ./service.c ../../../zoo-kernel/service_internal.o -L/usr/lib64 -lgdal -lxml2 -lz -lm -lcrypto geos-config --libs ./service.c:46: erreur: declaration of C function ‘int errorException(maps*, const char*, const char*)’ conflicts with ../../../zoo-kernel/service_internal.h:139: erreur: previous declaration ‘int errorException(maps*, const char*, const char*, const char*)’ here ./service.c: In function ‘void* createGeometryFromGML(maps*, char*)’: ./service.c:55: attention : deprecated conversion from string constant to ‘char*’ ./service.c: In function ‘int Boundary(maps*&, maps*&, maps*&)’: ./service.c:343: attention : deprecated conversion from string constant to ‘char*’ ./service.c: In function ‘int ConvexHull?(maps*&, maps*&, maps*&)’: ./service.c:350: attention : deprecated conversion from string constant to ‘char*’ ./service.c: In function ‘int Centroid(maps*&, maps*&, maps*&)’: ./service.c:369: attention : deprecated conversion from string constant to ‘char*’ make: * [cgi-env/ogr_service.zo] Erreur 1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Note: See TracQuery for help on using queries.

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