Custom Query (101 matches)
Results (67 - 69 of 101)
Ticket | Owner | Reporter | Resolution | Summary |
---|---|---|---|---|
#96 | Knut Landmark | fixed | Wrong macro names | |
Description |
The Windows-specific macro _zStrdup occurring in function char *strcasestr(...) (zoo_service_loader.c) does not exist. Presumably it should be replaced by zStrdup (defined in service.h) |
|||
#97 | Knut Landmark | fixed | Missing header file | |
Description |
The header file version.h, which is #included in service.h and service_internal_ruby.h, appears to be missing? |
|||
#98 | Knut Landmark | fixed | NULL pointer check for address to exported function | |
Description |
In the following code fragment occurring twice in zoo_service_loader.c, GetProcAddress or dlsym will return NULL if a user has mistyped the service name (the WPS Identifier parameter): #ifdef WIN32 typedef int (CALLBACK* execute_t)(char***,char***,char***); execute_t execute=(execute_t)GetProcAddress(so,fname); #else typedef int (*execute_t)(char***,char***,char***); execute_t execute=(execute_t)dlsym(so,fname); #endif This will cause a crash when attempting to invoke the function at the address given by execute: *eres=execute(&m,&request_input_real_format,&request_output_real_format); There should be a check to avoid this happening (with an error message). |