From: Paul Ramsey Date: Wed, 8 May 2013 20:37:12 +0000 (+0000) Subject: #2298, ST_AsGML geography crashable with monkey inputs X-Git-Tag: 2.1.0beta2~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8334781085d3fa35d6990b8e22a4571abcbed60d;p=postgis #2298, ST_AsGML geography crashable with monkey inputs git-svn-id: http://svn.osgeo.org/postgis/trunk@11384 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geography_inout.c b/postgis/geography_inout.c index bd4441d54..94a78c7f2 100644 --- a/postgis/geography_inout.c +++ b/postgis/geography_inout.c @@ -267,7 +267,7 @@ Datum geography_as_gml(PG_FUNCTION_ARGS) /* retrieve id */ if (PG_NARGS() >5 && !PG_ARGISNULL(5)) { - prefix_text = PG_GETARG_TEXT_P(5); + id_text = PG_GETARG_TEXT_P(5); if ( VARSIZE(id_text)-VARHDRSZ == 0 ) { id = "";