From: Nicklas Avén Date: Wed, 11 Feb 2015 22:50:59 +0000 (+0000) Subject: Fix for #3034 X-Git-Tag: 2.2.0rc1~685 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18f448105fa6baa205856b1cb30ca9311cdb5b06;p=postgis Fix for #3034 git-svn-id: http://svn.osgeo.org/postgis/trunk@13209 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index 427c16c9d..c615a8f34 100644 --- a/postgis/lwgeom_accum.c +++ b/postgis/lwgeom_accum.c @@ -424,6 +424,9 @@ pgis_twkb_accum_finalfn(PG_FUNCTION_ARGS) } } + if (fabs(state->precision)>7) + lwerror("precision cannot be more than 7"); + twkb = lwgeom_agg_to_twkb(&lwgeom_arrays, state->variant , &twkb_size,(int8_t) state->precision);