[postgis-tickets] [PostGIS] #3891: Undefined behaviour in pointarray_to_encoded_polyline
PostGIS
trac at osgeo.org
Mon Oct 9 02:04:49 PDT 2017
#3891: Undefined behaviour in pointarray_to_encoded_polyline
------------------------+---------------------------
Reporter: Raul Marin | Owner: strk
Type: defect | Status: new
Priority: low | Milestone: PostGIS 2.2.6
Component: liblwgeom | Version: trunk
Keywords: |
------------------------+---------------------------
Shifting a negative value is undefined, so I was getting the following
warning:
{{{
$ LD_LIBRARY_PATH=../.libs/ ./.libs/cu_tester
out_encoded_polyline_test_precision
Running test 'out_encoded_polyline_test_precision' in suite
'encoded_polyline_output'.
lwout_encoded_polyline.c:94:12: runtime error: left shift of negative
value -250691
PASSED - asserts - 2 passed, 0 failed, 2 total.
}}}
Fix in Github PR: https://github.com/postgis/postgis/pull/155
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3891>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list