Permalink
Browse files

fix crashes on error'd WCS getcoverage requests (#4714)

initialise msWCSGetCoverageMetadata20 to NULL to avoid memory failures
on error
  • Loading branch information...
1 parent e3bd202 commit 7e87f2c12562b237cc220c3121129a5db8404059 @tbonfort tbonfort committed Jul 24, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mapwcs20.c
View
@@ -1855,6 +1855,7 @@ static int msWCSGetCoverageMetadata20(layerObj *layer, wcs20coverageMetadataObj
{
char *srs_uri = NULL;
int i = 0;
+ memset(cm,0,sizeof(wcs20coverageMetadataObj));
if ( msCheckParentPointer(layer->map,"map") == MS_FAILURE )
return MS_FAILURE;

0 comments on commit 7e87f2c

Please sign in to comment.