Permalink
Browse files

Segfault resolved when parsing srsName in WFS spatial filter.

  • Loading branch information...
1 parent a7841c3 commit 34190596959ceb89635d0c1aff5db838101c182a @mkofahl mkofahl committed Apr 15, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 mapogcfiltercommon.c
@@ -482,11 +482,14 @@ char *FLTGetSpatialComparisonCommonExpression(FilterEncodingNode *psNode, layerO
if (psTmpShape) {
if( lp->projection.numargs > 0) {
+ if (psNode->pszSRS)
+ msInitProjection(&sProjTmp);
if (psNode->pszSRS && FLTParseEpsgString(psNode->pszSRS, &sProjTmp)) {
msProjectShape(&sProjTmp, &lp->projection, psTmpShape);
- msFreeProjection(&sProjTmp);
} else if (lp->map->projection.numargs > 0)
msProjectShape(&lp->map->projection, &lp->projection, psTmpShape);
+ if (psNode->pszSRS)
+ msFreeProjection(&sProjTmp);
}
/* ==================================================================== */
/* use within for bbox. Not Disjoint does not work. */

0 comments on commit 3419059

Please sign in to comment.